Several post_type in one array
-
I am using CPT UI to create different lists. With this code I decide which CPT list shows up:
<?php $args = array(
‘posts_per_page’ => 200,
‘orderby’ => ‘title’,
‘order’ => ‘ASC’,
‘post_type’ => ‘gewerbemarkt’,
‘post_status’ => ‘publish’,
‘$post’ => ‘postname’,
‘suppress_filters’ => false ); ?>My question is if I can use several post_types in this array: For example:
‘post_type’ => ‘gewerbemarkt,mitglieder’,
which doesn′t work.
Is this generally possible?Many regards
Jo
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Several post_type in one array’ is closed to new replies.