Skip Navigation

[Resolved] How to manually order posts which appear in a Views slider

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

Problem:
A View shows posts in a slider. Client would like to manipulate the order that the posts appear in the slider.

Solution:
You can choose to order by a built-in WordPress option, called menu order, which is very little used but which can help you here.

Edit your post type at Toolset > Post Types and in the block "Sections to display when editing..." be sure to check the option for page attributes.

Now when you edit these custom posts on the edit screen in a page attributes metabox you will see an Order option, where you can enter numerical values which can be used by your View to manually set the order of slides.

This support ticket is created 6 years, 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by mercedesD 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#951613

Hi,

I hope you can help: I’ve successfully made a slider with Layouts and some CSS but need the ability to “feature” posts in the slider.

The slider shows custom post types in a certain category.

At present it’s using the default sorting options and the most recently added custom post (“shows”) comes first, the one added the longest ago comes last, and so on.

Is it possible to change the order in which posts appear in the slider in Layouts? Or if I add a “featured” checkbox as a custom field, can I make that be the first post in the slider? I don’t mind how the solution comes, but really need to be able to control which is the first on the slider.

Would appreciate any help as I’m pulling my hair out! This site is password protected, registered users only, so I’m not posting it here. Hope that’s ok!

Thanks in advance.

#952349

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-07-20 at 15.49.03.png

Hi Mercedes

The slider is created with a View, and Views provides several options to set the ordering of the results, the default being post date.

You can choose to order by the values from a custom field (which means you would need to set values for each of the posts included in the slider), but there is a built-in WordPress option, called menu order, which is very little used but which can help you here.

Edit your post type at Toolset > Post Types and in the block "Sections to display when editing..." be sure to check the option for page attributes.

Now when you edit these custom posts on the edit screen in a page attributes metabox you will see an Order option, where you can enter numerical values which can be used by your View to manually set the order of slides.

The best thing would be to try it to get a feel for how it works.

#952445

Hi Nigel,

Thank you so much for your help! I’ll give that a go.

Best wishes