• Resolved robinqld

    (@robinqld)


    I’ve searched for an answer to this without success.
    Trying to put posts content below the static content of a page. I have created a travel page based on a template which shows on the posts for one category.

    The posts show up perfectly, but the introductory (static) content on the page doesn’t display. The page is here travel page

    If anyone can help I’d really appreciate it.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you make a custom page template for this page?

    https://www.balkhis.com/web-designs-resources/custom-page-for-wordpress/

    You need to make a separate page in your php file called travel.php use the first method in the post above …

    You would change the template name to whatever you like.

    Then post all your normal page.php below the only thing would be different is that you will add your static text in the php file …

    Then it would work perfect ??

    Thread Starter robinqld

    (@robinqld)

    I cannot get this to work! I have a template called t-travel.php, and used that as template for the travel page.

    I have tried the following ways to show some static text:
    1. text in the template below the header & above the loop
    2. creating a sticky post
    3. calling a specific post below the header & above the loop
    – <?php query_posts(‘p=695’); ?>
    4. echo the category decsription – <?php echo category_description(); ?>

    none of these methods worked!

    I’m tearing my hair out! Does anyone have other ideas?

    Thanks

    Rob

    Thread Starter robinqld

    (@robinqld)

    Now working!
    Using text in the template did finally work … after a delay, despite reloading the page.
    Go figure!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘static AND post content on one page?’ is closed to new replies.