<?php
$args = array(
'posts_per_page' => $attr['limit'],
'post_type' => $attr['type'],
'order' => $attr['order'],
'orderby' => $attr['orderby'],
'tax_query' => array(
array(
'taxonomy' => 'tax_region',
'terms' => $region,
'field' => 'id',
'include_children' => true,
'operator' => 'IN'
)
),
);
$the_query = new WP_Query( $args );
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.