Suppose that I have one custom taxonomy (brands) and two custom post types ("cameras" and "lens") depending both on brands taxonomy.
I want to display all cannon lens when put this url:
http://mysite.com/lens/cannon/
and all cannon cameras when i put this url:
http://mysite.com/cameras/cannon/
What this urls does now:
They both show me cannon cameras and lens in the archive page, but i want them listed separately depending on the url.
This is my rewrite argument in camera cpt registration:
'rewrite' => array('slug' => 'cameras/%brand%', 'with_front' => TRUE),
and lens cpt registration:
'rewrite' => array('slug' => 'lens/%brand%', 'with_front' => TRUE),
If anybody can help, i 'll appreciate.