Custom Post Type in Loop Query
-
Have a multisite with pods creating custom post type and a simple loop as stated below. However when querying standard post types with custom post types, the custom post types do not get retrieved.
Any idea what could cause this will be much appreciated.
eg:
array( ‘post’, ‘page’ ) = retrieves both
array( ‘post’, ‘event’ ) = retrieves only post
array( ‘people’, ‘event’ ) = retrieves bothQuery:
$args = array(
‘post_type’ => array( ‘post’, ‘event’ ),
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘cat’ => -485,
‘paged’ => $page
);
query_posts( $args );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Post Type in Loop Query’ is closed to new replies.