‘ASC’,
‘nopaging’ => True,
‘post_type’ => ‘post’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘subtitles’,
‘field’ => ‘slug’,
‘terms’ => $term,
),
),
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {
echo ‘
- ‘;
while ( $the_query->have_posts() ) {
$the_query->the_post();
// $post_transl = apply_filters( ‘wpml_object_id’, get_the_ID() , ‘post’, FALSE, $my_current_lang);
echo get_the_date( $d ) . ‘ ‘ . ‘‘ . get_the_title() . ‘, ‘ .get_location_for_post_id(get_the_ID()) ;
echo «\n»;
}
echo ‘
‘;
} else {
echo ‘no posts’;
// no posts found
}
/* Restore original Post Data */
wp_reset_postdata();
do_action( ‘wpml_switch_language’, $my_current_lang );
?>