I was hoping someone could help me. I have done some serious googling but cannot find the answer for this one.
I have a custom post type called tutorials.
I can go to mysite.com/tutorials and get a list of all the tutorials.
I have also created a custom taxonomy called tutorial_categories with the following code:
register_taxonomy(
'tutorial_categories',
'tutorials',
array(
'labels' => array(
'name' => 'Tutorial Categories',
'add_new_item' => 'Add New Tutorial Category',
'new_item_name' => "New Tutorial Category"
),
'show_ui' => true,
'show_tagcloud' => false,
'hierarchical' => true,
'hasArchive' => true
)
);
How can I create a category page for a tutorial_category, so if someone goes to:
mysite.com/tutorials/php/
They will get a list of tutorials (custom post type) with the custom taxonomy of PHP.
A member of stackoverflow recommended I take a look at this:
- Creating WordPress Custom Taxonomy Archives - WP-Types.com
But this doesn't work either. I have created the taxonomy-tutorial_categories.php page but I still get page not found.