Rewrite with CPT archive
-
Another topic…
What I’m trying to acheive is this.
CPT = resources
Tax1 = resource_type | tax1_term = white-papers
Tax2 = industry | tax2_term = enterprise1.
example.com/resources
= either a Page titled Resources OR a CPT archive page called resources. I don’t care which. If its a page, I’ll createpage-resources.php
and add content. If its a CPT archive, I’ll just create anarchive-resources.php
and add my content there.2. Then I’d like
example.com/resources/type/white-papers
which should be a taxonomy archive usingtaxonomy-resource_type.php
. On this archive should be a dropdown to filter thewhite-papers
byindustry
.3. The third layer would be
example.com/resources/type/white-papers/industry/enterprise
.4. Ideally, the actual CPT post would reside at
example.com/resources/type/white-papers/the-post
but I can live withexample.com/resources/the-post
if necessary.I am able to acheive variations of these, but on all 3.
I can get the CPT to work correctly, in that it will load either a page or the CPT archive. But then the taxonomies 404.
I can switch things around and get the taxonomies to work, both
/type/white-papers/
andtype/white-papers/industry/enterprise
but then the CPT archive page loads asis_home
.Thoughts?
- The topic ‘Rewrite with CPT archive’ is closed to new replies.