In my theme (a child of Twenty Sixteen) I've created a new Custom Post Type, pg_review
. I've associated two custom taxonomies with it, pg_genres
(hierarchical categories), and pg_authors
(like tags).
Everything is working fine except permalinks... Despite trying to understand and adapt various examples I'm going round in circles.
I would like these permalinks to work:
/reading/2017/02/19/post-name/ # A single Review.
/reading/2017/02/19/ # Reviews from one day.
/reading/2017/02/ # Reviews from one month.
/reading/2017/ # Reviews from one year
/reading/ # The most recent Reviews (this is working).
/reading/genre/genre-name/ # Reviews in a `pg_genre`.
/reading/author/author-name/ # Reviews in a `pg_author'.
This is pretty much how conventional Posts work if given a custom permalink structure like /archive/%year%/%monthnum%/%day%/%postname%/
. But how do I make this work for a Custom Post Type?
(I've tried the Custom Post Type Permalinks plugin which promises to do this, but the links for taxonomies 404 (a problem others in support seem to have too).)