Skip Navigation

[Resolved] Featured items followed by regular items in one view

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

Problem:
The user would like to display the featured posts first. He manages featuring status using a custom field.

Solution:
The view needs to be sorted/ordered using a custom field. Check this screenshot http://prntscr.com/107muy4

This support ticket is created 3 years, 1 month 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by andreyD-2 3 years, 1 month ago.

Assisted by: Jamal.

Author
Posts
#1967521

I am setting up a classified ads section on my website. And for each category I need to list featured ads first, followed by regular ones. The featured parameter is set by a custom field (radio: featured; free;).

How can I set the display order in a single view?

I am using Toolset Views (not Blocks).

#1968011

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+00:00)

Hello and thank you for contacting the Toolset support.

I think that you can get what you need by settings an order on the featured custom field. Then you can add a secondary order/sorting on the posts' date. Check this screenshot hidden link

I don't know what values you store for the custom field, so, you need to make sure to use the correct sorting type(string, number) depending on how you stored them.

I hope this helps. Let me know if you have any questions.

#1968361

Awesome, that works!

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