I have no idea how to do this and really need your help please …
First I created a custom-post-template called "wr_event" - then I added a custom taxonomy (like categories) to this post-template!
register_taxonomy( 'Type of event', 'wr_event', array( 'taxonomy' => 'event_type', 'label' => 'Types', 'singular_label' => 'Type', 'hierarchical' => true, 'rewrite' => true) );
I did all that in my
functions.php file. The "types" I created in my taxonomy in the wp-backend right now are "Lectures", "Workshops", "Festivals".
If I create a post (event) and assign it to a "category" (taxonomy) I get this url
localhost.com/lectures/my-post-title and the
single-wr_event.php template is used.
This is already a big step towards what I finally want.
What I don't know is how I can now kind of create
pages for my taxonomies like it automatically works for posts and categories?
e.g. I said I have this right now:
but when I just enter
localhost.com/lectures/ I want all the posts assigned to this taxonomie listed. And I'd like to add a navigation in my header that lists all taxonomies I created just like 'wp_list_categories'.
Any ideas on how to this?