[resolved] wp_list_pages - Include Pages and their children?? (3 posts)

  1. bekabug
    Posted 6 years ago #

    Ashford Theme, Drop down menu is on

    I want to include certain pages by ID and all their children (automatically). Is there a way to use wp_list_pages to do this?

    I've tried this code but it doesn't include the children. Not sure if it won't work or if I am doing something wrong.

    wp_list_pages(('page' == get_option('show_on_front')) ? 'depth=0&sort_column=menu_order&title_li=&include=1,2,3,4,5' . get_option('page_on_front') : '&sort_column=menu_order&title_li=');

    Thank you,


  2. esmi
    Forum Moderator
    Posted 6 years ago #

  3. bekabug
    Posted 6 years ago #

    Got help on Freenode #WordPress


Topic Closed

This topic has been closed to new replies.

About this Topic