Nav menu of all posts in a custom post type
There are several ways to do this. Unless you are only going to have a few posts of type ‘section1’ then I would advise against listing them all. Options: WP_Query get_posts() (Actually uses the WP_Query object anyway!) Using the WP_Query() option: <?php $posts = new WP_Query( array( ‘post_type’ => ‘section1’, ‘posts_per_page’ => -1 ) ); … Read more