WordPress.org

Ready to get started?Download WordPress

Forums

Adding 'Page' links into sidebar (6 posts)

  1. jberglund
    Member
    Posted 9 years ago #

    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

  2. Kafkaesqui

    Posted 9 years ago #

    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(); ?>

  3. jberglund
    Member
    Posted 9 years ago #

    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!

  4. jberglund
    Member
    Posted 9 years ago #

    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!

  5. Kafkaesqui

    Posted 9 years ago #

    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

  6. jberglund
    Member
    Posted 9 years ago #

    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?)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.