<?php $current_term = $wp_query->queried_object->name; $current_term_id = $wp_query->queried_object->ID; ?> <hgroup class="section-heading wrapper"> <h1><?php echo $current_term; ?></h1> <h3><?php echo category_description( $current_term_id ); ?></h3> </hgroup> This works fine but the $current_term_id variable...
So I have a custom query, in which I’m displaying some results posts of a custom post type called “staff”. This custom post type is linked to a custom...
Saving extra fields that were added to a taxonomy. I want the most proper & efficient way of doing so. Where should I save the new fields? 2 possible...
I have registered three custom taxonomies. All three of these custom taxonomies are attached to my custom post type. There is only one taxonomy out of the three registered,...
So I have a custom post type (people) with a related custom taxonomy (directory). Instead of editing a person and then choosing the related directory organizations I’d like to...
I have three custom post types, each has its own taxonomy like product_cat, event_cat, media_cat. I labeled all of them with the word “Category” like: register_taxonomy("product_cat", "product", array( "labels"...
So I have a site with about 6 custom post types.Three of these post types are attached to a single custom taxonomy. I would like to be able to...
This is somewhat of a follow-up to a question I asked some time ago: https://wordpress.stackexchange.com/questions/11088/trying-to-design-nice-category-drilldown-with-one-held-taxonomy-and-a-repeatabl I’ve sort of got a better idea of what I want, but only a...
I just want to create a custom taxonomy for my plugin use but this should not be linked with any post-type and also I need to add the menu...
I try to add tax query on pre_get_posts hook using following code : // Add custom posts to main query (archive and home) add_action( 'pre_get_posts', 'add_post_types_to_query' ); function add_post_types_to_query(...