How can I post last posts from custom_taxonomy? I tried this like, but it doesn't works.
$terms=get_terms('tax_name');
$request=array();
if(count($terms)>0)
{
foreach($terms as $t)
{
$request[]=$t->slug;
}
}
query_posts(
array(
'tax_query' => array(
'taxonomy' => 'tax_name',
'field' => 'slug',
'terms' => $request,
)
)
);
while ( have_posts() ):the_post();