How to list posts of Parent with Depth = 1
-
Nice plugin!
We have this installed, using a few different post types. We have custom post types set up, with Hierarchy turned on. (Essentially, this allows us to move a giant number of pages out of the “Pages” section for easier CMS – ex. “Departments” for a county website with 30+ departments, each having their own subpages).
We need to be able to display a list of posts (title, permalink) of a given post type, with parent, ordered alphabetically, depth = 1.
In other words, we need to do exactly this, but for Custom Post Types:
wp_list_pages ('child_of=15&depth=1&sort_column=post_title&sort_order=asc');
Custom Post Types won’t work with the wp_list_pages … and we have tried a number of plugins to display posts of a certain type – but cannot get them to work with the hierarchical structure (depth=1).
Suggestions would be greatly appreciated!
- The topic ‘How to list posts of Parent with Depth = 1’ is closed to new replies.