Tag Cloud still not showing AD Tags after Modification... Please Help!
In the newest version of classipress we now have to types of tags. Ad Tags and Post Tags. The unfortunate thing is that in the Tag Cloud you only have the option for Categories and Post Tags. I did some digging in the forums and found some coding to add to my functions.php and the tags still don't appear. I have tried this link
http://wordpress.org/support/topic/c...s-archive-page and The code I used is below... If someone can help me correct this it would be greatly appreciated! Thank you in advance.
add_filter('pre_get_posts', 'query_post_type');
function query_post_type($query) {
if ( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
$post_type = get_query_var('post_type');
if($post_type)
$post_type = $post_type;
else
$post_type = array('post','ad_listing');
$query->set('post_type',$post_type);
return $query;
}
}