Skip Navigation

[Closed] Allow user to set custom order of posts displayed by views

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.

Author
Posts
#311689

Hi,

We need a way for the admin of the website to set a custom order on some views controlled pages if they need to - how can this be achieved?

Currently most views are sorted by post date but the client wants to be able to set a custom order on some pages.

Thanks

#311778

Waqas
Supporter

Languages: English (English )

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

You can achieve this by following the steps written below:

A) Edit your CPT under Types -> Custom Post Types -> {Your_CPT}
B) Make sure your CPT has enabled "page-attributes" in "Custom Post Properties" section (see attached 'types- enable page attributes.png')
C) If it doesn't please tick-on the check box with 'page-attributes' option and save the CPT.
D) After above steps, you should be able to see "Page Attributes" section, having "Order" field with your custom posts (of your CPT) - see attached 'post - menu order.png'. This is where you can enter the custom order number for your posts.
E) Edit your corresponding View, and change "Ordering" to "Menu order" (either Ascending or Descending) - see 'view order by menu_order.png'.

After the above steps, your view will present listings in the custom order (defined by Menu Order field on your custom posts).

I hope this will help resolving this issue.

#311994

Hi,

That looks great, how would the user see all the items they're ordering?

Thanks

#312534

Waqas
Supporter

Languages: English (English )

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

Please pardon me for not understanding "how would the user see all the items they're ordering?". Can you please explain a bit about it? Generally when the sorting order is applied, the posts are displayed to a user in that order.

The topic ‘[Closed] Allow user to set custom order of posts displayed by views’ is closed to new replies.