• Simon Ainley

    (@simonainleydotinfo)


    Hello,

    IN my wordpress site, I have the following setup, I have page called clients, to display this page, I have template called page-clients.php within this template I pull in the the_content() and also I use query_posts() to get all my custom posts of the type “casestudy”.

    My question is that the user can click read more on a case study post, and be taken through to single-casestudy.php where I am needing to have a submenu currently I am doing the following,

    <?php wp_list_pages(array('include' => '154, 136', 'title_li' => '', 'sort_column' => 'ID', 'sort_order' => 'DESC', 'depth' => '1')); ?>

    This gives me the following output,

    <li><a href="">Clients</a></li>
    <li><a href="">Case Studies</a></li>

    What I am wanting is to add more list elements underneath case studys but they need to be only of the post type “casestudy” is this possible, and how do I do so?

The topic ‘wp_list_pages help’ is closed to new replies.