Skip to content

Instantly share code, notes, and snippets.

@jesgs
jesgs / post-order-attribute-fix.php
Last active August 24, 2023 09:22
Fixes issue with menu_order not saving properly with Gutenberg
<?php
/**
* Add page attributes to post
*/
function mytheme_add_post_attributes()
{
add_post_type_support('post', 'page-attributes');
}
add_action('init', 'mytheme_add_post_attributes', 500);