WordPress.org

Support

Support » How-To and Troubleshooting » how to get home page (blog) included in wp_list_pages

how to get home page (blog) included in wp_list_pages

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

    thanks,

    -Morgan

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Does anyone know a better way to do this?

    MichaelH

    @michaelh

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to get home page (blog) included in wp_list_pages’ is closed to new replies.