- Back-up your db
-
Add this code to your functions.php file from your theme:
$all_posts = get_posts(array( 'numberposts' => -1, 'post_type' => 'post', )); foreach($all_posts as $p) set_post_format($p->ID, 'standard');
- Refresh
- Remove the code
Or with a SQL command:
UPDATE `term_relationships`
SET term_taxonomy_id = 'standard_post_format_id'
WHERE term_taxonomy_id = 'gallery_post_format_id'
Change standard_post_format_id
and gallery_post_format_id
with the IDs matching post format names from the term_taxonomy/terms tables
Related Posts:
- has_post_format() vs. get_post_format()
- What difference does it make if I enable support for video post format?
- How do I remove the post format meta box?
- Adding post-formats to Twenty Ten child theme
- Is there a real life use case for post formats except for microbloging?
- Renaming post formats after Gutenberg
- What is the recommended behavior for the post formats?
- Custom Post Formats
- Target all posts that are NOT aside or link post formats
- Filter the first from Quote Post Format
- Displaying all Video Post Formats to Page
- Display Post Format as a String
- Different markup for each post format
- How to recognise on which site the content is being rendered?
- post formats – how to get the relevant content part?
- Post formats for Pages not saving
- Is there any problem if I use get_template_part like this?
- How can I remove the first video from a post and feature it?
- previous_post_link/next_post_link disappear when excluding by post_format
- Usage of post_formats
- how to get list of post formats supported by theme?
- Formatting Standard Post Format
- If post-format == ‘gallery’ conditional
- Adding new post format on plugin activation
- post formats – where’s the difference: “aside” vs. “status”?
- How to get the id or url of the image in an image post?
- About post format
- Smart post format loop problems
- “post-format” code snippets list [closed]
- wordpress post formats
- How to display quote format by preg_match function?
- I would like to have a quote page just to show quotes
- How to display list of video post on video section?
- Paste from word not preserving formatting
- How to treat post formats?
- Post formats and template hierarchy
- Change standard post format metabox
- Next Post Link in format
- Displaying cf post formats with oembed
- Custom formatting
- Is There a Difference Between Taxonomies and Categories?
- Are content.php and content-single.php the same?
- Is it possible to rename a post format?
- How to set a default format for a custom post type?
- Display/query post formats
- How do I add a new custom post format?
- Display posts for a single post format
- Post format selector in Thematic child theme post class
- Help altering a query to exclude all but standard post format
- Get image captions for images on gallery post format metabox
- How to edit layout of a particular post format?
- How to enqueue scripts depending on post formats?
- Link Featured Thumb to Attachment Page, If Possible
- Auto-embed link info from URLs in link post format?
- Exclude Post Format from next_post and prev_post
- Apply post formats to a specific post type only?
- Filter the_content() in the Quote Post Format to Display Quotes
- Post Format single-loop.php using get_template_part
- Is possible to add post-formats to custom-post-type?
- Checking post format during xmlrpc_publish_post
- Get first URL from post content
- Registering different Post Formats for Blog Post and CPT
- Exclude certain post formats from pagination
- trigger html cleanup for all posts
- How to add Post Format Taxonomy Archive page in the menu?
- How to use format post in a pertinent way
- Next Posts Prev Posts for Standard post format only
- What’s the best practice way of handling custom fields in different post formats?
- How to get Related Custom Posts?
- Difficulty with PHP function that displays a post’s format in WordPress
- How can I add a filter to a particular post format?
- Override post-formats in child theme
- Taxonomy – Exclude post format from showing on page
- How can I make a page for post formats (specifically quotes) in wordpress 3.5
- How do I get standard posts to open up in their own template when using get_template_part()?
- How to display all posts not in a post_format
- display post format text in loop
- Audio post format with Advanced Custom Fields
- How to modify get_the_excerpt() when post-format equals ‘quote’?
- Getting Twitter Content on My Blog
- Use different post formats on different post types
- Wrap posts p tags in div
- Add specific custom fields to post formats
- Video post format, extra content breaks video embed
- Add Post Format Support to Twentyeleven Child Theme
- 3.1 post formats and specific categories/custom taxonomies
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- How can I globally italicize list of texts in the UI database or Posts? [closed]
- Display archives based in post_format
- Setting ‘post_format’
- Archive of post format for Custom Post Type
- Post Format problem
- Change post template the proper way
- Category template not displaying all post formats
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- How can I add WordPress Audio Player as featured audio in Audio Blog Posts?
- Rewrite a specific Post Format to URL slug
- Convert many posts from having a specific meta_key to use a post_format
- Filter image and text from post format
- How to query posts from single post format on Genesis framework