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 created a custom post-type ( Testimonials ) and i have custom taxonomies for this post-type to separate the testimonials.

Custom Testimonial Taxonomies are 1) Commercial 2) Residential

Now, i am having issue when displaying them..

1 ) When the user clicks the parent link testimonials ( we will show testimonials from all category)

2 ) When the user clicks Commercial or Residential ( we want to show testimonials from that specific custom taxonomy )

How to create template for the above scenario?

share|improve this question
    
Have you created any templates to go along with your taxonomy? View Codex –  Howdy_McGee Apr 1 at 13:50
    
I have created an archive template named (archive-testimonials.php) and for the other two pages ( i created archive-commercial.php and archive-residential.php) –  Seyed Apr 1 at 13:55
    
My url is like this domain.com/testimonials and domain.com/testimonials/commercial –  Seyed Apr 1 at 13:57
    
I got it worked using the following template names archive-testimonials.php taxonomy-testimonial-category-residential.php taxonomy-testimonial-category-commercial.php Thanks you @Howdy_McGee for quick reply to my question. –  Seyed Apr 1 at 15:04

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.