Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.