Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

[Solution] Entries from all live blogs getting mixed

$
0
0

Replies: 0

This is resolution for an unresolved topic. If you replace 'field' => 'id' with 'field' => 'slug' in the tax query, it will resolve the issue. I was fixing the issue and thought someone would need the fix, just in case plugin developer is away.

$q = new WP_Query(array(
          'post_type' => 'liveblog_entry',
          'liveblog' => $id,
          'posts_per_page' => -1,
          'post_status' => 'publish',
          'orderby' => 'date',
          'order' => ('bottom' == get_option('liveblogging_update_effect')) ? 'ASC' : 'DESC',
          'tax_query' => array(
	      array(
		 'taxonomy' => 'liveblog',
		 'field' => 'slug',
		 'terms' => $id
	      )
          )
));

Viewing all articles
Browse latest Browse all 59525

Trending Articles