- This topic has 10 replies, 3 voices, and was last updated 11 months, 4 weeks ago by Marcus.
March 21, 2019 at 7:38 am #845664Marcus
Hi Tom and good GP people!
My client is requesting that I provide a way, on the front-end, to sort or re-sort the order of blog post listing on the front-end of the website.
For example, we have a category of posts called “Publications” and they want to be able to click/select “Sort by Date ASC, Date DESC, or Alpha by Title.”
I saw this thread https://generatepress.com/forums/topic/sorting-posts/ – which got me thinking that if I could pass the sort via the query string, that might work?
I looked through the list of filters, but I’m not sure which one might help me achieve this.
I appreciate any help in the right direction.GeneratePress 2.2.2GP Premium 1.7.8March 21, 2019 at 9:02 am #845782LeoStaffCustomer SupportMarch 21, 2019 at 9:25 am #845812Marcus
Yes, the first thing I did was to review the plugins on the other thread. None of them provide sorting of posts on the front-end.
Thanks anyway Leo.March 21, 2019 at 9:28 am #845817LeoStaffCustomer Support
What about this solution?
https://www.wpbeginner.com/plugins/how-to-let-users-filter-posts-and-pages-in-wordpress/March 21, 2019 at 9:52 am #845852Marcus
Thank you Leo! I appreciate the link. I hadn’t run across that one yet in my searching.March 21, 2019 at 9:55 am #845857LeoStaffCustomer SupportMarch 21, 2019 at 10:07 am #845859Marcus
Thank you yet again Leo.
BTW, I also just found this plugin which provides blog post sorting. Looks promising.
Again, I appreciate the help.March 21, 2019 at 10:24 am #845877LeoStaffCustomer SupportJune 25, 2020 at 8:48 am #1341667Mike
I’m using Posts Table Pro for a solution where I’ve created a database of recordings using a custom post type. It’s extremely flexible, easy to implement, and looks great. One thing you’ll not see quickly in the docs is that by default, except for the main title of the blog post, any other fields sort within the table rather than linking to the archive page, but there’s an option to change that.
Give it a go, it’s quite neat. Scales down well to mobile as well.
MikeJune 25, 2020 at 9:10 am #1341700LeoStaffCustomer SupportJune 25, 2020 at 9:44 am #1341739Marcus
Excellent! Thank you Mike. Thank you again Leo.
- You must be logged in to reply to this topic.