Forums

Trying to create a custom template for static pages... (3 posts)

  1. Atelier Carmel
    Member
    Posted 6 months ago #

    I feel like I'm probably missing something very simple here, but here I go anyways... I'm trying to create a custom template for my static pages. All I want is the header, the navigation menu, and then the content (images and text). For now, I figured how to get the header, the menu, but the content of each page doesn't show up. I can't seem to find which template tag to add to my code to make the content appear!

    Here is my website:
    http://www.ateliercarmel.ca
    The home page is currently using my custom template, so you'll se what I mean...

    So... What line of code do I need to add after "get header" in order to make this happen???

    Thanks!

  2. alchymyth
    The Sweeper
    Posted 6 months ago #

    you would use a loop http://codex.wordpress.org/The_Loop, such as you may find in page.php of your theme;

    the code starting with if(have_posts()) : while(have_posts()) : and ending with endwhile; and endif;

  3. Atelier Carmel
    Member
    Posted 6 months ago #

    Thanks!
    It took me a while, but it's working. It looks nothing like I want it too, but that's a whole other story!

Reply

You must log in to post.

About this Topic