Quantcast
Channel: Question and Answer » views-contextual-filters
Viewing all articles
Browse latest Browse all 57

how to filter blog posts by taxonomy and by year

$
0
0

I have been trying to build a filter fuctionality for blog posts. I would want to filter by taxonomy terms and by the year the post was published. So basically in the content I want to list all blog posts – on sidebar I would have all used taxonomy terms listed and also a list of all years/months when post have been published.

Additionally I want the filter to be reflected by the URL structure:

  • For a URL like domain.com/blog/2014 all posts from 2014 would be listed.

  • For a URL like domain.com/blog/cars only posts tagged with ‘car’ would be listed.

Is there a module to do this – or should this be done with views? I have been trying to do this with views now but with not much luck. Especially with the url I don’t understand how i can do that. Or if there is some tutorials on somewhere – that would help also.


Viewing all articles
Browse latest Browse all 57

Trending Articles