• 0

Custom Post Type and Filter by Year


Question

Posted · Report post

Hello all

I have created a Custom Post Type

 

http://www.example.com/news-room - this shows all posts of the news room CPT which is what I want

http://www.example.com/news-room/news-releases - shows all news room posts of the news release category which is what I want

 

There are hundreds of posts of news release category, so my question is how do I create a filter that allows visitors to filter by year?  

 

The perfect solution would be when someone goes to:

 

http://www.example.com/news-room/news-releases

 

and see's all of the posts of the news release category, they can click buttons or links (2005, 2006, 2007, 2008, etc) and the page would remove all the posts except for the posts of that year.

 

Anyone have any ideas on how to facilitate this please?

Thank you all in advance

Eric

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Posted · Report post

Thanks Simon.....I tried that link this morning.....unfortunately it didn't work.  But I'm not very good with PHP yet.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now