Thanks, work like a charm
this is my code:
<?php
$args=array(
'post_type' => 'property',
'taxonomy' => 'property_types',
'caller_get_posts'=> 0,
'tax_query' => array(
array(
'taxonomy' => 'property_types',
'terms' => 'rooms',
'field' => 'slug',
'include_children' => true,
'operator' => 'IN'
)
),
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php
endwhile;
}
wp_reset_query(); // Restore global post data stomped by the_post().
?>