Skip Navigation

[Resolved] Frontend sort order of your results. Order by custom field or other options.

This thread is resolved. Here is a description of the problem and solution.

Problem:
When listing contents on your site's front-end, sometimes you need to allow users to sort the list by the relevant values like price, date, alphabetically, and other.

Solution:
Toolset Views plugin allows you to easily add front-end sorting controls to the list of contents, select the direction of ordering the posts and more.

Relevant Documentation:
https://toolset.com/documentation/user-guides/allowing-visitors-to-sort-the-front-end-results/

This support ticket is created 8 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 8 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#401674

Hey there!

I have been hacking through the real estate demo site to create a new project, and it is going very well. I hit a point where I need to add an additional feature.

I am using the parametric search to filter my results. This is working great. The site I am building is a business directory. I am eventually going to want users to be able to rate the businesses, and then be able to sort them by the ratings.

I was hoping for a push in the right direction.

First, do you have any resources for ratings on a custom post type entry? I was thinking it might be able to work with CRED?

Second, I would like to be able to provide a filter/sort dropdown for the users to be able to sort by:

- Title (asc and desc)
- Entry Date (asc and desc)
- Rating (asc and desc)

Do you have any thoughts on this? I am happy to provide more detail if needed.

Thanks!

#401823

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Regarding rating system:

Toolset does not include a Star Rating system by default features.
The post you mention uses a lot of Custom Code, and if you are conformable with PHP it can be done this way.

There are also other possible approaches:
https://toolset.com/forums/topic/best-way-to-create-a-star-rating-field-in-types-with-graphic-output-in-views/
https://toolset.com/forums/topic/adding-reviews-and-star-rating/
https://toolset.com/forums/topic/filtering-by-star-rating-and-reviews/

Calculating is not possible in Views by default, it requires some custom code as well

It seems -unfortunately- that for now you need custom programming work which is beyond the scope of our support. At this point I would suggest you consider contacting one of our certified partners from this link:
https://toolset.com/consultant/

You will get the custom assistance you need to get on with your project. I can also suggest to locally test some 3rd Party Plugins to see if you can use them nicely with Toolset.

Second, I would like to be able to provide a filter/sort dropdown for the users to be able to sort by:
- Title (asc and desc)
- Entry Date (asc and desc)
- Rating (asc and desc)
==>
Order By feature on the Front End is not supported or provided by Views yet.
The only chance to achieve this by now either uses a Table with sortable columns (created with the GRID Wizard):
https://toolset.com/documentation/user-guides/view-layouts-101/

Or, to create 2 Views, one ordered ascending, the other descending, and a link to the View, with the Link Title "Order by (ASC/DESC)".
The link simply leads to a new view.

#403570

I'll take a look through all of this, thanks!

#403585

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok. Thank you.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.