• Resolved petemcbride

    (@petemcbride)


    I’m trying to add the index page to my main page navigation at the top. I’ve been searching the wordpress site for hours and still haven’t found out how.

    I’ve tried just creating a home page and setting that as my front page, but I also want it to be my post page and for some reason beyond me, wordpress tells me that the front page and post page can not be the same.

    But if I just leave the my post page as the default index page then it doesn’t include a link to it in the wp_list_pages().

    I’m I missing something.

    thanks
    -Pete

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter petemcbride

    (@petemcbride)

    Found it! The answer is in this post.

    You have to use the lesser know function “wp_page_menu(‘show_home=1&title_li=’)” instead of the more popularly listed function “wp_list_pages()”.

    I really think the “wp_page_menu()” function should be giving a more prominent place on the wordpress site and should be include in the design & layout pages. It would have saved me A LOT of time.

    hi,

    strangely, this doesn’t work in my site…
    also, ‘title_li=’ didn’t remove the title above the menu. (i’ve solved it now by putting a space for the title.)
    any ideas why this doesn’t work for me, while it does work for others?

    regards,
    schmiek

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How-to: add index page to wp_list_pages()’ is closed to new replies.