post e custom post type in the same query
-
Hello, I want to know how it’s possible doing a query that returns posts and posts under custom post type. This is my code, but it doesn’t work.
$args = array( 'posts_per_page' => 4, 'post_type' => array('post', 'programacao-vila'), 'tax_query' => array( array( 'taxonomy' => 'eventos', 'field' => 'id', 'terms' => $atts['term'] ) ), 'cat' => $atts['cat'], 'order' => 'DESC'); $wp_query_slide = new WP_Query( $args );thanks
The topic ‘post e custom post type in the same query’ is closed to new replies.