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?
for example
'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'),
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Array for 'all' custom post types?’ is closed to new replies.