Custom taxonomies not working…
-
I have searched for other queries on this subject, nothing seemed to be resolved, and a couple of the solutions I tried didn’t work for me. I’m hoping to get a fresh perspective.
Here is the code I’m using:
add_action( 'init', 'create_my_taxonomies', 0 ); function create_my_taxonomies() { register_taxonomy( 'team', 'post', array( 'hierarchical' => false, 'label' => 'Team', 'query_var' => true, 'rewrite' => true ) ); register_taxonomy( 'year', 'post', array( 'hierarchical' => false, 'label' => 'Year', 'query_var' => true, 'rewrite' => true ) );
Everything is looking good in the Dashboard. The ability to tag Posts with Year and Team show up when creating a new Post. The links to those taxonomies show up on the left hand side in the Post panel.
I have five “years” within my site right now, and I went back and changed the previously created post_tags for 2009-2013 to year. For the tag 2011, I have 34 posts. Within the Dashboard, when I click to see those 34 posts, it says No Posts Shown.
I created a new “year”, 2014, and created a test post. Still doesn’t work.
I have tried resetting my permalinks.
I have tried it without any other plugin active.
I have tried Yoost’s (sp?) plugin, and that produces the same results.
I have emptied my cache at every turn.I have Justin Tadlock’s Series plugin up and running, but I don’t know enough to go in and change the code to reflect a separate taxonomy.
That said, I have another WP site where it works just fine.
Would there be a difference between WP and WPMU installations regarding this issue?
- The topic ‘Custom taxonomies not working…’ is closed to new replies.