Have a problem populating a page of taxonomy posts, I wonder if someone can help.
Using this method to get the posts where $taxonomy == ‘localities’ works in terms of correct posts being returned however it wont return excerpts at all.
Not sure if its related or points to something I have done wrong in setting up the Taxonomy but using the tax_query method fail to find any posts!
$paged = true by the way, though have tried false as well in case I had misinterpreted.
Select all $args=array( // 'tax_query' => array( // array('taxonomy' => $taxonomy, // 'field' => 'name', // 'terms' => $local_name, // ) // ), 'localities' => $local_name, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts'=> 1, 'paged' => $paged, ); $temp = $wp_query; //$wp_query = null; $wp_query = new WP_Query($args);
Any thoughts would be much appreciated.
- The topic ‘Excerpts on page template’ is closed to new replies.