• I’m using a template that doesn’t include ‘page’ links in it (like Kubrick’s default template does). I have a couple of static pages I’ve created, but now they don’t show on the list.

    How can I add those back into my templates? (I’m new to PHP, so I’m not certain what is required, file-wise and code-wise).

    Jberglund

Viewing 5 replies - 1 through 5 (of 5 total)
  • I assume you want it to appear on your sidebar or menu. Look in that theme’s directory for the file sidebar.php (if this doesn’t exist, then check the index.php). Wherever you want Pages to appear as links, insert this:

    <?php wp_list_pages(); ?>

    Thread Starter jberglund

    (@jberglund)

    No sidebar.php in this template. And, I checked the index.php and category.php… nada. I’ll add the code you gave me to the index.php file and see what happens.

    Thanks!

    Thread Starter jberglund

    (@jberglund)

    Okay. I did just what you said. I now have the links working (though, presenation is off kilter), and it goes to a page for me. But, no CSS styles on it. Can I ask ‘where’ I’m pointing the code to? What page/template is it picking up?
    That might help me tie things together better.

    Thanks, again!

    If you haven’t found it yet, all would appear to be (or will need to be added) in:

    /wordpress/wp-content/themes/GreenTrack/style.css

    Thread Starter jberglund

    (@jberglund)

    Okay. My actual question is: What ‘page’ or .php file does wp_list_pages point to? (Does it send it to a particular page template? Like single.php, or page.php?)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding ‘Page’ links into sidebar’ is closed to new replies.