Add a css class to a taxonomy permalink

The filter you are looking for is term_links-$taxonomy, where $taxonomy is the taxonomy name. This will filter the $term_links links array before outputting by the_terms(): add_filter(‘term_links-cities’, ‘ad_filter_links’); function ad_filter_links($term_links) { foreach ($term_links as $term_link) { $term_link = str_replace(‘<a ‘, ‘<a class=”fancybox”‘, $term_link); } return $term_links; }

Filter WordPress posts by between parameter

Tax Query Limits A Taxonomy Query in WordPress supports the following three arguments for the operator parameter: IN, NOT IN and AND. So it basically can’t do what you’re trying to do. Not even with advanced (tax_query) Queries. Meta Query and possibilities You’ll want to move your concept a bit and work with post meta … Read more

Trying to list terms of a custom taxonomy using get_categories

get_categories() fetches taxonomies of type ‘categories’ particularly http://core.trac.wordpress.org/browser/tags/3.6/wp-includes/category.php#L0, to fetch custom taxonomy you should use get_terms() instead, here http://codex.wordpress.org/Function_Reference/get_terms $terms = get_terms( ‘partner-cat’, ‘orderby=count&hide_empty=0’ ); $count = count($terms); if ( $count > 0 ){ echo “<ul>”; foreach ( $terms as $term ) { echo “<li>” . $term->name . “</li>”; } echo “</ul>”; } Make sure … Read more