Hi @jnfdev,
As per the WordPress docs here, the function add_post_type_support
must be called on the init
hook.
Can you try the following:
add_action( 'init', function() {
add_post_type_support( 'post', 'page-attributes' );
} );
If this works for you then ignore the rest of the comment.
—
I confirmed this to be working on my WordPress setup with the Twenty Twenty-One theme.
Can you try the same so that we can be sure the issue is not with the current theme in the video?
If it fails even with the Twenty Twenty-One theme, then would it be possible to share the list of plugins active on your WordPress installation? It will help us to further debug the issue.
Please let us know.
Thank you.