I have enabled Post Formats for Pages on my WordPress site but when I update the Page the format reverts back to Standard.

Here is what I added to my functions.php file to enable Post Formats:

add_theme_support( 'post-formats', array( 'link' ) );

add_post_type_support( 'page', 'post-formats' );
  • Looks like this is due to new block editor. When Classic Editor plugin is activated, code is working as expected. You want to report issue in Gutenberg plugin. – Nilambar Jun 28 at 4:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.