1

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 the WordPress documentation without luck.

  • You've gotten two straight answers. The question is what type of navigation do you want. – Nathan Powell Apr 4 '17 at 6:28
4

Another way that @toscho's solution made me try, and worked for me, is this scheme:

http://example.com/videos/?tag=crazy
  • This method is much more elegant. @toscho's answer was more direct to the URL structure in question. – Nathan Powell Apr 4 '17 at 6:26
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.

  • 1
    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. – fuxia 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
  • Try with native theme. Make sure to visit the Permalinks page. – Nathan Powell Apr 4 '17 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.