WordPress.org

Ready to get started?Download WordPress

Forums

Problem with Pages (7 posts)

  1. joeking
    Member
    Posted 9 years ago #

    I've created a few test Pages to see how they work, but when I go to view my site I expected to see links to these pages somewhere on the index page.

    I'm using the Benevolence theme and have other themes installed too - none show the Pages link. Kubrik does however.

    So how can I get the others to show the links to Pages too?

    Do I need to add code and if so what and where?

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    The idea, as I understand it, is this: pages are designed to be independent of the rest of the blog, even going so far, as you've seen, to exclude a link to them on the front page. I suppose Kubrick automatically picks them up somehow. So yes, you'll have to add your own links.

  3. Kafkaesqui

    Posted 9 years ago #

    Yeah, have to add something:

    http://codex.wordpress.org/Template_Tags/wp_list_pages

    You'd add this template tag to the theme's sidebar.php file, or if it doesn't have one to the menu/sidebar section of theindex.php.

  4. joeking
    Member
    Posted 9 years ago #

    Yes that worked! Many thanks!

    I added:

    <?php wp_list_pages('arguments'); ?>

    to sidebar.php and the pages appeared on the index page as per Kubrik.

    One other thing. Is it possible to remove the word "pages" that appears above the links to Pages? And if so where do I go to do this?

  5. Kafkaesqui

    Posted 9 years ago #

    See the second example for wp_list_pages():

    http://codex.wordpress.org/Template_Tags/wp_list_pages#Example_2

  6. joeking
    Member
    Posted 9 years ago #

    Hey hey hey! That worked too!

    I added:

      <?php wp_list_pages('title_li= '); ?>

    to sidebar.php (and removed the code above that I added previously) and it worked a treat.

    Thanks to everyone who helped me :-)

  7. Syllani
    Member
    Posted 9 years ago #

    I had this similar problem, but the solution posted by joeking worked like a charm.

    Hooray for google, and hooray for this great community. Thanks. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.