- This topic has 10 replies, 3 voices, and was last updated 2 years, 9 months ago by
Marcus.
-
AuthorPosts
-
March 21, 2019 at 7:38 am #845664
Marcus
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 #845782Leo
StaffCustomer SupportHi there,
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.
Documentation: http://docs.generatepress.com/
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 #845817Leo
StaffCustomer SupportWhat about this solution?
https://www.wpbeginner.com/plugins/how-to-let-users-filter-posts-and-pages-in-wordpress/Documentation: http://docs.generatepress.com/
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 #845857Leo
StaffCustomer SupportNo problem.
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!
Documentation: http://docs.generatepress.com/
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.
https://wordpress.org/plugins/posts-data-table/
Again, I appreciate the help.
March 21, 2019 at 10:24 am #845877Leo
StaffCustomer SupportAwesome!
Thanks for reporting back 🙂
Figured there must be something.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 25, 2020 at 8:48 am #1341667Mike
Hi Marcus,
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.
cheers
MikeJune 25, 2020 at 9:10 am #1341700Leo
StaffCustomer SupportThanks Mike!
Documentation: http://docs.generatepress.com/
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.
-
AuthorPosts
- You must be logged in to reply to this topic.