Setting Menu Order Issue for Posts

[ad_1]

I’m developing for a blog with an edge case where one of the categories needs to order posts by menu_order (descending) instead of date on the category archive page. The front end is fine. For the back end, I enabled ‘page-attributes’ in the ‘supports’ attribute for posts, and the Post Attributes meta box is appearing as expected in the back end.

However, when I change the value of the Order field to a non-zero number, the value resets to 0 when I update the post. I’ve taken the usual troubleshooting steps (changed the theme, deactivated all plugins except the one function turning on this meta box, clearing the cache). I think this is a bug that needs to be reported in Trac, but I want to make sure I’m not missing something. Do I need to enable something else that I’m missing?

We’re on WP 6.5.2 and using Gutenberg.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer