Linked Questions

26
votes
1answer
8k views

A tool to analyze rewrite rules? [closed]

Is there a good tool to analyze my rewrite rules? I always get confused with the regexes and the parameter replacements. I have created something myself and will post it here so others can use it, ...
2
votes
2answers
4k views

Removing taxonomy base using WP rewrite

I´m trying to create the following URL structure: example.com/attractions <-- post type archive example.com/attractions/taxonomy_term <-- taxonomy archive ...
2
votes
3answers
2k views

Multiple post types - share same ReWrite slug?

I've run into another wonderful 404 issue. I'm trying to have 2 seperate post types that share the same rewrite slug. I've flushed my rewrite rules, and when I test only 1 of the CPT works- the ...
4
votes
3answers
1k views

Using /%postname% for a custom post type

I have a custom post type whose permalink needs to sit in the same space as pages, like so: /an-example-thing <-- custom post type 'thing' /about-the-things <-- a normal page I'm well ...
1
vote
3answers
2k views

Permalinks in Custom Post types

Is it possible for a custom post type to have a permalink as domain.com/custom-slug/ instead of domain.com/custom/custom-slug/? I can't seem to achieve it. rewrite argument while registering it ...
1
vote
3answers
617 views

Many to Many Taxonomies or rewrite rules?

Im developing a theme for article directory and i would like to link some way taxonomies to taxonomies. I had a custom post type called "company" with 2 taxnomies Taxonomy #1 is category with ...
0
votes
1answer
948 views

Taxonomy with_front causes all

I have a custom taxonomy, which sets the with_front to false to try and get the URLs to look like /%type%/%brand%/%product%/, degrading as we go down. This however is driving me nuts. Everything in ...
1
vote
1answer
769 views

Custom post type permalinks giving 404s

I'm having trouble setting up permalinks for a custom post type. Below is the code from my init function: register_post_type('topic', array( ... 'hierarchical' => true, 'query_var' ...
0
votes
2answers
602 views

Remove Parents From Permalink of Hierarchical Taxonomy

I have a custom hierarchical taxonomy called "places" set up with categories like so: Services > Financial Services > Financial Advisors. The permalink for this category listing page is currently ...
0
votes
1answer
334 views

Create template for taxonomy results limited by Custom Post Type

I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy? Here's the deal: The CPT is called Shows. Each ...