WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I right now have a custom post type with a url structure like:


I have a custom variable that I am detecting in the template file to switch layout views which works fine but the URLs are setup like:


I am wanting the URLs to look like


Mainly because of pagination is not working properly with ?template=g when you try and page it sets the URLs as


which then returns a 404.

I have read some of the past articles. However was unable to get the URLs working properly partly due to the taxonomy name.

How can I get this right?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.