I am currently doing my own wordpress theme and therefore need a custom post order. However, I am able to activate the post attribute's order within the wordpress gutenberg editor with the following code
add_post_type_support('post','page-attributes');
but it does not save when saving the post and always resets back to 0.
I already tried disabling all plugins and also checked the error with another wordpress theme (and the code shown) and another plain wordpress blog but it seems to not save my order set.
I also checked the post within the database and there is "menu_order" set to 0. When changing this manually to 5 or some other number, I can use this parameter for my custom order but gutenberg editor still shows up 0 as post attributes order.
Any ideas what I did wrong or is this a wordpress bug. Any chances to fix this? The order attribute of pages seems to work within gutenberg editor.