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've this kind of permalink for post type : /widgets/%category%/%postname%/ And the problem is that when going to /widgets url (http://mysite.com/widgets) a not found page error (404) is displayed. What is the default template ?

I've index.php, archive.php, category.php, single.php with some custom templates.

And another thing that i think i should say is by creating a page with the slug of widgets and assigning it to a template, that error gone away and the content of that template comes up.

share|improve this question

There is no template for "/widget". Templates are about content types and not URL fragments.

IMO your page hack is totally legit. Another way to handle this is to have a widgets category which is the parent of all other categories and change your permalink structure to /%category%/%postname%/

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.