Drop-down filter doesn’t retrieve custom taxonomies

is it because you aren’t returning a value to the parse_query filter? or otherwise passing it by reference. function parse_query(&$query) { //added the reference & global $pagenow; $qv = &$query->query_vars; if ($pagenow==’edit.php’ && isset($qv[‘taxonomy’]) && $qv[‘taxonomy’]==’page_sections’ && isset($qv[‘term’]) && is_numeric($qv[‘term’]) &&$qv[‘term’]>0) { //added check for greater than 0 as the default ALL is zero and … Read more

WPML taxonomies not translated

hack for filter the_terms: $terms = get_terms(‘YOUR-TAXONOMY’,’hide_empty=1′ ); if (!empty( $terms )){ $term_links = “”; foreach ( $terms as $term ) { if($term->term_id == icl_object_id($term->term_id,’YOUR-TAXONOMY’,false,ICL_LANGUAGE_CODE)){ $term_links[] = ‘<li><a href=”‘.$category_url.’?YOUR-TAXONOMY=’. $term->slug.'”> ‘ . $term->name . ” . $term->name . ‘</a></li>’; } } echo join( ”, $term_links ); }

Multiple Drop-Down custom taxonomies search

WordPress in version prior to 3.1 does not support querying multiple taxonomies, you will need to install Scribu’s plugin Query Multiple Taxonomies to fix that. and in order to get the dropdown select box you can use wp_dropdown_categories() like this: $args = array( ‘taxonomy’ => ‘location’, ‘hide_empty’ => 0, ‘echo’ => 1, ‘name’ => ‘location’ … Read more

Display latest post of taxonomy

You can do a straight query for the taxonomy term: query_posts( array( ‘review’ => ‘movie’ ) ); To query multiple terms you can use tax_query: ‘tax_query’ => array( ‘taxonomy’ => ‘review’, ‘field’ => ‘slug’, ‘terms’ => array( ‘movie’, ‘term’, ‘term’ ), ),

How to show custom posts

In the template for your recordings page you’ll want to specify a custom query for the post type in question. $rec_query = new WP_Query(‘post_type=recording’); And then later in your template, you will refer to the query object you created directly instead of relying on the default. For example: while ($rec_query->have_posts()) : $rec_query->the_post();