Jump to content

nvrsmr

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by nvrsmr

  1. That's exactly how I present it. I stated: here's what I want to do, here's what I'm doing, here's the issue, and there's the code used for this specific function. I did not make anyone go to a third-party site. There are no URLs in my post. Maybe you should have read and fully understood my first post before commenting. In my second post, I included URL because you stated I was not sufficiently clear in my first message, so I sent you URLs for clarity, to show you what was going on on the front end. I did not take your meaning the wrong way. I took it exactly as you meant it. If you're not going to help, then bugger off. I neither want nor need, nor have the time for you sophomoric attitude. I presented a case exactly as do most other people in this forum who are having an issue with code. That I am not a coder or developer is irrelevant. I asked for help with code in the same way most others do. Have a good day.
  2. Hello gw1500se, You really don't have to be a d&%k. I'm not asking for free coding. I've presented the code I'm using and asking if there is an issue with it with regards to it not doing what it's supposed to do. Had I posted that I wanted to do X and asked someone to give me al the code, then you would be right, but that's not what I did. I see people on this forum all the time asking for someone to check out their code, which is what I did. Were they coders, then why did they ask for the same type of help I'm asking for? If you're not going to help, keep your personal comments to yourself. Have a great day!
  3. Hello, Thanks for responding. Please keep in mind I am not a coder or developer. Much of what I've done is by searching online for tutorials and with the help the support forum at GeneratePress. I've been out of work for five months due to the current situation with the virus, and can't afford to pay someone for help. Sorry. These are the URLs for the pages in question Static Page (Source of Content & Formatting): https://wordpress-424710-1336702.cloudwaysapps.com/venues/ Category Page (Target): https://wordpress-424710-1336702.cloudwaysapps.com/costa-rica-wedding-venues/ As you can see, the content is pulled onto the category page, but does not have the same not formatting. I guess that means the CSS isn't being pulled from the source static page to the target custom category page. My apologies. I don't know what you mean by: "Did you echo $page and $content to make sure it is what you expect? Do they contain valid CSS data and the proper tags? Is error reporting turned on?" Are you suggesting I do something to the code below in order to report what is being pulled from the static page? I can enable error reporting on the sever. I don't think it currently is. <?php $page = get_page_by_title( 'Wedding Venues in Costa Rica' ); $content = apply_filters('the_content', $page->post_content); echo do_blocks( $content );> Have I sufficiently clarified my terminology and goal? If not, please let me know what's lacking clarity. Again, thank you for your response.
  4. Hi. I’m hoping someone can help me pull the styling/formatting from a static page onto a category template. The content is pulling fine, but it's not formatted/styled. Code used to pull content from static page onto custom category template: <?php $page = get_page_by_title( 'page-name' ); $content = apply_filters('the_content', $page->post_content); echo $content; ?> With the above code, the content is being pulled, but the formatting and styling is not being pulled. The following code is adapted to pull the styling/formatting: <?php $page = get_page_by_title( 'Wedding Venues in Costa Rica' ); $content = apply_filters('the_content', $page->post_content); echo do_blocks( $content );> 
It did not pull the styling/formatting. We’re using GeneratePress Pro + Generate Blocks (no page builder). The static page is built with Gutenberg and GenerateBlocks. By the way, I'mm not a coder or a developer. I know a little about this and about that, but this isn't my field of expertise. Could someone please suggest what can be done to this code to get it to pull the styling form the static page onto the custom category template? Thank you very much.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.