Articles of custom taxonomy

Custom Post Types – Titles as Taxonomies

I am developing a church media center using custom post types. I have a custom post type called ‘Series’ and a custom post type called ‘Sermons’. Each Series must have an Title, Image, and Description. Naturally, each Series will be a collection of Sermons (Which will have Audio, Video, and other metadata). I need to […]

Get Terms for Page

I’m trying to retrieve the terms of a page’s custom taxonomy. When I’m in a post this works just fine: $args=array(‘orderby’ => ‘none’); $terms = wp_get_post_terms( $post->ID , ‘custom_taxonomy’, $args); But this won’t work on a page. I’ve tried also with: get_the_terms & wp_get_object_terms But they don’t seem to work. BTW, I’m using a hierarchical […]

Get wordpress taxonomy slug name(s) to use as div class

I’m trying to mark up my posts using their custom taxonomy slug as the div class so that they can be filtered… So far what I have displays the taxonomy name but what I need is the slug so I have a nice-space-free-name, I have the below so far outputting the name: <div class=”box-item cocktails-box […]

Show categories of custom post type and not all posts

I have this page on my website – It’s a custom taxonomy template for a custom post type called Directory Entries with a taxonomy called directory_entry_type which is what’s being pulled in here. At the moment it’s just pulling in all the posts under the category “Community Directory” – This category has about 6 children […]

Adding a second custom taxonomy to a custom post type (both shown in its table)?

The following code provided by Mike Schinkel, creates a custom post type and a custom taxonomy. It makes the taxonomy to show up in the custom post type’s column. Finally, it inserts some default terms. I would like to insert a second taxonomy for the custom post type (Page Content) called: Locations. (this second custom […]

How to loop through custom taxonomies and sub taxonomies and display posts?

So I have a custom taxonomy of continent which is linked to a custom post type of offices. Under the continent category I have: Europe — Germany —– The Posts — United Kingdom —– The Posts Asia — Australia —– The Posts — New Zealand —– The Post Ideally I’d like the HTML to look […]

How can I merge this function(s) that inserts terms to a custom taxonomy with this other that adds a custom taxonomy filter?

Few days ago I asked a question about How to show a custom taxonomy in a custom post type column (and insert some ‘default’ terms to the custom taxonomy). Then I saw an answer for Adding a Taxonomy Filter to Admin List for a Custom Post Type. (Both answered by MikeSchinkel) I would like to […]

Why doesnt this query work? (Custom Taxonomy)

My Query $my_query = array( ‘posts_per_page’ => 10, ‘tax_query’ => array( array( ‘taxonomy’ => ‘country’, ‘field’ => ‘id’, ‘terms’ => array(4) ) )); Added Custom Taxonomy Using function taxonomy_init() { // create a new taxonomy register_taxonomy( ‘country’, ‘post’, array( ‘label’ => __(‘Countries (Labels)’), ‘sort’ => true, ‘args’ => array(‘orderby’ => ‘term_order’), ‘rewrite’ => array(‘slug’ => […]

Taxonomy page not working

I have a taxonomy register with name doctor-services and I have a taxonomy template with name taxonomy-doctor-services.php but when I click on taxonomy link it does not display detail of the taxonomy. Here is a code function doctors_custom_post(){ $labels = array( ‘name’ => ‘Doctors’, ‘singular_name’ => ‘Doctor’, ‘add_new’ => ‘Add Doctor’, ‘add_new_item’ => ‘Add New […]

Which file/template is in charge of taxonomies for custom post types?

I have set up a CPT, lets say “Movies”. ‘rewrite’ => array( ‘slug’=>’movies’, ‘with_front’=>FALSE ) I added a taxonomy “Genre”. ‘rewrite’ => array( ‘slug’=>’movies/genre’, ‘with_front’=>FALSE ) I also tried ‘rewrite’ => array( ‘slug’=>’genre’, ‘with_front’=>TRUE ) register_taxonomy( ‘category_movie’, ‘movie’, $args ); Everything works, but, when I want to browse some movies e.g. in the category/taxonomy horror […]