Joy
(@joyously)
The post format user interface is consistent with whatever the theme supports. Since your theme doesn’t support them, no UI is shown to change them.
You could temporarily add a line to your theme to support them all, use Bulk Edit to change them all, then remove the line again.
See https://developer.wordpress.org/reference/functions/add_theme_support/#post-formats
Post formats are saved as taxonomy terms for the taxonomy “post_format”. The presence of such terms shouldn’t affect themes that do not support formats. Consider fixing the issues that should not be issues.
You can remove the terms through code that loops through a block of posts and calls wp_set_post_terms() with an empty array of terms for “post_format” taxonomy. A block of posts because getting all posts will likely time out. Get only posts who have a post_format term assigned. When none are returned, removal is complete.
Thread Starter
acann
(@acann)
Thanks, the issue I was having was the Divi builder plugin has a blog module you can use to display a grid of posts (typical archive style view) but when the post has a post format of gallery or image it apparently doesn’t pull the featured image so the grid looks bad (some have the image thumbnail, others are missing). Their support told me I needed to change the post format to standard.
So, I think the easiest thing (this site uses the Genesis theme with a child theme called FoodiePro) would be to temporarily add theme support, change them, then remove it. @joyously would this be what I would do?
1. Add this code to the child themes functions.php
add_theme_support( 'post-formats', array( 'standard', 'gallery', 'image' ) );
2. Go to posts screen. Post format should now be an option. Bulk edit all posts where post format <> standard (image or gallery) and make them all standard.
3. Remove the line added in step 1 from the child theme functions.php
Is that correct?
Many thanks both of you for responding, much appreciated.