Skip Navigation

[Resolved] Trying to figure out how to have 1 post be sorted to the top of a sorted view

This support ticket is created 7 years, 4 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Noman 7 years, 4 months ago.

Assisted by: Noman.

Author
Posts
#550678

I am trying to:

have 1 post appear at the top of my loop. The issue is that I need to sort by a custom field first (last-name), but I do not know how to have a secondary order by based upon a custom field. It does seem available.

I visited this URL:

I expected to see:

Instead, I got:

#550730

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Darcy,

Thank you for contacting Toolset support. You cannot use the custom field with secondary sorting with Views as it's not implemented yet.

We already have a feature request submitted for this, I will add your request to the same as well.

Alternatively, if you want to display and keep one post always on top (something like sticky post), you can do any of following:

- Add the post title, link, any other content as text or html content at the Top of the Views.
- OR create a custom shortcode where you can pass ID for a specific post and put that shortcode in the View loop at at the top.

Currently above are the only solutions I can think of. Thank you