Post Querry
// WP_Query arguments
$args = array(
'post_type' => array( 'post_solutions' ),
'has_password' => false,
'nopaging' => true,
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'tax_technology',
'field' => 'slug',
'include_children' => true,
),
),
);
// The Query
$subtechnology_solutions = new WP_Query( $args );
// The Loop
if ( $subtechnology_solutions->have_posts() ) {
while ( $subtechnology_solutions->have_posts() ) {
$subtechnology_solutions->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();