- This topic has 10 replies, 3 voices, and was last updated 2 years, 9 months 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 Support
The thread you linked suggested 3 plugins.
Have you tried any of them?
This would require a custom solution, which is out of the scope of this forum, without a third party plugin.
Adding CSS: http://docs.generatepress.com/article/adding-css/March 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?
Adding CSS: http://docs.generatepress.com/article/adding-css/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 Support
This is all handled by WordPress itself (not theme specific) so I would think there should be some good solutions out there.
Hope you can get it working!
Adding CSS: http://docs.generatepress.com/article/adding-css/March 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 Support
Thanks for reporting back 🙂
Figured there must be something.
Adding CSS: http://docs.generatepress.com/article/adding-css/June 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 Support
Adding CSS: http://docs.generatepress.com/article/adding-css/June 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.