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 a website with the following categories:

  • Videos
  • Pictures
  • Stories

And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc.

Is there a way I could filter lets say: Videos tagged as "Crazy"?

I know you can do:

http://domainname.com/tag/crazy/

But that would retrieve ALL content tagged as crazy, I just want "Videos".

I've searched WP documentation without luck.

Thanks!

Johann

share|improve this question

1 Answer 1

You can add the category as parameter:

http://example.com/tag/crazy?category=videos

This will list only the posts tagged crazy from category videos. Be aware the conditional tags will treat this as tag archive.

share|improve this answer
    
Hi toscho, I just tried this filter without luck. Do I need a special template for this to work? –  Johann Jan 9 '13 at 22:56
    
@Johann This should work out of the box, at least if you have permalinks enabled. I have tested it on my local setup. Hm … on one of my blogs it does not work, strange. –  toscho Jan 9 '13 at 23:02
    
I read that this is not native on Wordpress so that's why I was asking. I've permalinks enabled. –  Johann Jan 9 '13 at 23:04

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.