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 have looked at other similar answers to this question but not finding my way. I am using Custom Post Types plugin for a custom post_type called 'product' and has_archive is set to 'true' in the settings I am using an archive template called archive-product.php The archive template is used and works as long as the permalink structure is default. However, I want it to be the postname permalink structure. If I change it to this in permalinks then the page for products uses the standard loop (maybe archive template or index loop) What is the fix for this? I have seen some posts talk about an issue with flush_rewrite_rules() ? but this is implemented anyway when you save the permalink page so how can that be the problem? Thanks in advance.

share|improve this question

you can use rewrite parameter in register_post_type 'rewrite' => array('slug' => 'product','with_front' => FALSE) and change the permalink structure to 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.