I created simple custom post type with few taxonomies. I
<?php $query_params = getQueryParams(); $query_params['post_type'] = 'client';
if(isset($query_params['search'])){
$query_params['post_title_like'] = $query_params['search'];
unset($query_params['search']);
}
$loop = new WP_Query($query_params);
if($loop->have_posts()) : while($loop->have_posts()): $loop->the_post();
// SOME HTML
endwhile; endif; ?>
Then I tried to list display taxonomies for each post, by this:
$categories = get_categories("taxonomy=city");
foreach ($categories as $category) :
echo '<li>' . $category->name . '</li>';
endforeach;
But I always get all created taxonomies, not only selected to post. Any suggestions?