how to get home page (blog) included in wp_list_pages (4 posts)

  1. morganpackard
    Posted 9 years ago #

    Hello List,

    I'm using wordpress to create a small personal site for myself. I have a blog and several pages. I'm using wp_list_pages to create a main site navigation.

    My blog doesn't show up in the list generated by wp_list_pages. Can anyone here tell me how to get it to show up?

    Is there another, better technique I should be using to create my main navigation?



  2. cygnus183
    Posted 9 years ago #

    i don't know if there's an easier way to do this, but this is what i did:

    find "post-template.php" in the "wp-includes" folder.

    find the "wp_list_pages" function
    find the first instance where the function mentions a ul tag.

    immediatly after the "ul" tag (still in the single quotes) add link to your home page enclosed in a "li" tag.

  3. tev
    Posted 8 years ago #

    Does anyone know a better way to do this?

  4. MichaelH
    Posted 8 years ago #

    I set Front page displays: options in Administration > Options > Reading and both the pages I used for Front page and Posts page get displayed with the template tag, wp_list_pages().

    Maybe I'm missing something. Note that I'm using Version 2.2.3.

Topic Closed

This topic has been closed to new replies.

About this Topic