How can I get Taxonomy Images to work with ‘orderby’ argument?

Try this: within $args, leave ‘taxonomy’ where it is and put the remaining three arguments in a ‘term_args’ sub-array. Based on the documentation, it appears that the filter passes arguments to get_terms() through a ‘term_args’ sub-array. Your $args array is mixing filter arguments and get_terms() arguments at the same level, and it looks like that … Read more

Page for custom taxonomy

This is a default part of the custom taxonomy functionality built into WordPress. When you register your taxonomy, the following argument play a part in determining whether to display that archive and where: public (is it accessible on the front end?) rewrite (how do the permalinks work?) You should read through all of the arguments … Read more

Taxonomy list links to first post in that term

// link artist name with first work by that artist $term_list .= ‘<li><a href=”‘ . get_term_link( $term->slug, $term->taxonomy ) . ‘” title=”‘ . sprintf(__(‘View all post filed under %s’, ‘my_localization_domain’), $term->name) . ‘”>’ . $termfirst . ‘ ‘ . $term->name . ‘</a></li><li>’ . the_terms() . ‘</li>’; change the above lines to $posts = get_posts(array( ‘post_type’ … Read more

saving custom taxonomy as post title

Updated Answer: You’re trying to mix a lot of things that you don’t understand, by using the $args in wp_get_post_terms you don’t need to run the foreach to hunt for child terms (is your custom taxonomy even hierarchical anyway?). As a catch-all you can just implode the whole list and get the same result (but … Read more

Filter by Custom Taxonomy AND Custom Field

Ok I found a solution for my scenario. I combined those two plugins to filter by custom taxonomy and custom field: Query Multiple Taxnomies http://wordpress.org/extend/plugins/query-multiple-taxonomies/ Custom Query Fields http://wordpress.org/extend/plugins/custom-query-fields/ I changed the QMT Plugin template by adding the possibility to choose several custom fields and do a combined query. The URL now looks as follows: … Read more

Get 1st parent category id from post

You need to use get_ancestors(). Assuming your post is only in one category, the following code should work (if it’s in multiple you’ll need to loop through each of the assigned categories to determine the various hierarchies). $category = get_the_category(); $ancestors = get_ancestors( $category[0]->term_id, ‘category’ ); $direct_parent_id = $ancestors[0]; If you want to get the … Read more

Only display latest custom taxonomy post

You should save the ID of the first post in a variable (e.g $splash_post_id) and in the next loop, use “post__not_in” => $splash_post_id , in the $args array. $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => ‘1’, ‘order_by’ => ‘date’, ‘order’ => ‘DESC’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘theme’, ‘field’ => ‘slug’, ‘terms’ => … Read more