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 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

1 Answer 1

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

 
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.