Skip Navigation

[Resolved] Sort by Menu Order – What menu?

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

Problem:

I want to manually order them. I see the option for "Order by: Menu Order" but what menu is this going to look at?

Solution:

The "Menu Order" is a built-in feature of WordPress, you can enable it by these:

1) Edit your custom post type, in section "Sections to display when editing ..."

enable option "Page Attributes"

2) Edit each post of your custom post type, you will be able to see a metabox "Post Attributes", with input box "Order", there you can setup number values, and sort by it in your post view.

Relevant Documentation:

https://codex.wordpress.org/Function_Reference/register_post_type#supports

This support ticket is created 6 years 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: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years ago.

Assisted by: Luo Yang.

Author
Posts
#1180664

I have a view pulling some custom post type for a loop.

I want to manually order them. I see the option for "Order by: Menu Order" but what menu is this going to look at?

I tried naming it the slug of the post type. I tried the slug of the view calling the menu, but nothing seems to use the menu.

#1180674
Page-Attributes.JPG

Hello,

The "Menu Order" is a built-in feature of WordPress, you can enable it by these:
1) Edit your custom post type, in section "Sections to display when editing ..."
enable option "Page Attributes"

See screenshot Page-Attributes.JPG

2) Edit each post of your custom post type, you will be able to see a metabox "Post Attributes", with input box "Order", there you can setup number values, and sort by it in your post view.

More help:
https://codex.wordpress.org/Function_Reference/register_post_type#supports

'page-attributes' (menu order, hierarchical must be true to show Parent option)

#1180697

My issue is resolved now. Thank you!

#1181081

You are welcome.