Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have similar problem to this one: Custom Post Type Template - Archive

So, I have a wordpress custom post type called coupon. I try to assing the template to it by using archive-coupon.php, but it goes directly to home.php

I also have a custom taxonomy of this CPT called tags with the rewrite rule => "tag" so basically when I go to URL like this - http://mysite.com/tag/3d I want to see a custom template for my Custom Post Type or general for taxonomies.

I have also tried taxonomy.php template but it still ignores it. What could be the problem? Thanks

Update -

I don't know what really happened. But before that I had template called taxonomy-store.php So, when I renamed it to another name, taxonomy tag started using taxonomy.php template file. And still archive-coupon.php doesn't work.

share|improve this question
Can you post the code from your functions.php that declares the CPT? – Rachel Baker Jun 21 '12 at 18:49

1 Answer

i believe tag is a reserved taxonomy rewrite name on wordpress to be used on default post_tag taxonomy. That might cause the issue. Rename the custom taxonomy to something like coupon-tag.

BTW: did you try flushing the rewrites by visiting permalink page from settings tab?

share|improve this answer
yes, I have updated the permalinks settings. Still didn't work. I also used another slug for rewrite, and got the same issue – Godforever Jun 21 '12 at 20:58
@Godforever: okey, you will need to show your code to get further help. – Sisir Jun 23 '12 at 7:46

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.