What's the URL for a CPT archive page of a given category (default, not custom)?
-
Hi all,
I’ve searched high and low for this and can’t find a clear answer, but maybe I’m just bad at searching… ??
Anyway, I apologize in advance if this has been covered already, and if it has thanks for pointing me in the right direction.So the thing is this:
I have created a custom post type called “breves”, which uses the default/core categories and tags.
I have no problem going to the domain.com/breves/ archive page, that uses the archive-breves.php and displays all “breves”, without distinction of tag or category, which is fine.I also know I can access domain.com/category/category-xx or domain.com/tag/tag-yy, and that outputs all types of post for category xx or tag yy, which is great and to be expected…
But what I can’t figure out is how to see all “breves” from category xx or tag yy?
I’ve tried domain.com/breves/category/xx and domain.com/category/xx/breves but none worked and from I understand of the way urls are constructed, it was to be expected…
So what would the url be for those two archives? Does it even exist?Seeing as I’ll be adding a new category each week (I’m using them as “issues” for a magazine), I don’t want to have to add a page with a custom template (even a dynamic one) every week to show the “breves” of that issue/week/category (which is the only way I see now).
What am I missing or misunderstanding?
I have code at the ready if you need it, but I’ve checked it thoroughly (at least I think, and better than last time anyway) and don’t think it’s coming from there…
Oh, and I’m using /%category%/%postname%/ as my permalink structure for post, I don’t know if that comes into play?I hope I was clear enough, otherwise please ask!
And thanks a lot for your attention and answers…Marie
- The topic ‘What's the URL for a CPT archive page of a given category (default, not custom)?’ is closed to new replies.