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.

So I have a custom post type with 3 taxonomies attached to it. I want users to be able to filter custom posts based on their taxonomy choice. So I have 3 taxonomies, charity, type, location and I want to for exmaple domain.com/findby/location/los-angeles or domain.com/findby/charity/red-cross

   domain.com/post-type/%postname%/
   domain.com/findyby/%taxonomy%/%specific-term%/

I know it's doable, I'm just somewhat clueless as to how!

share|improve this question

1 Answer 1

Create your custom taxonomies for your custom post type and for each, set the slug to include the findby portion, as in the example below for charity.

     'has_archive'           => true,
     'rewrite'               => array( 'slug' => 'findby/charity', 'with_front' => false ),
     'query_var'             => true,
     'public'                => true,

Create your custom post type with desired slug.

     'has_archive'           => true,
     'rewrite'               => array( 'slug' => 'postname', 'with_front' => false ),
     'query_var'             => true,
     'public'                => true,

     // include all relevant taxonomies, such as category, post_tag and your custom ones
     'taxonomies'            => array('category' , 'post_tag', 'charity')
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.