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

Query Custom Post Type by Taxonomy

Use get_terms() with child_of (accepts numerical ID of parent term) argument to retrieve child terms and then loop through them and on each iteration use current term in the loop. Code example (not tested): $child_terms = get_terms( array( ‘child_of’ => $cameras_term_id ) ); foreach( $child_terms as $term ) { $args = array( ‘post_type’=> ‘rental_gear’, ‘type’ … Read more

Get newest created custom category (get_term_by and variables) (outside Loop)

You can use this function http://codex.wordpress.org/Function_Reference/get_categories The parameters passed are basically the same except it returns an object containing all the category information. Using this function can replace the first 4 lines of your code. Now your final code becomes: $getID = get_categories(‘taxonomy=issue&number=1&orderby=ID&order=DESC’); $currentID = $getID->term_id;

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