Array for 'all' custom post types?
When creating a query array for custom post types, is there a way of including all types without having to list them all as they are created?
'post_type' => array ('post', 'blog-item', 'company-spotlight', 'ebook', 'podcast', 'photo-gallery', 'presentation-slide', 'video', 'white-paper'),
would look something like:
'post_type' => array ('post', 'ALL_CUSTOM_POST_TYPES'),
- The topic ‘Array for 'all' custom post types?’ is closed to new replies.