Quantcast
Viewing all articles
Browse latest Browse all 44

Answer by user3040610 for Hide children posts in loop with custom taxonomy

Try this,you have to use include_children as below to remove the children taxonomies.

  $args = array(             //Rest of you args go here'tax_query' => array(                  array('include_children' => false                  )              ),'post_type' => 'cars','car_type' => 'large_cars','posts_per_page' => 100,'order' => 'ASC'          );  $query = new WP_Query( $args );

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>