The problem you are having here is that standard
is not a post format. standard
is just assigned to posts that does not have a post format assigned to it. You can also check in your db in wp_terms
, there is no post-format-standard
term. You can also do the following to print out a list of all registered post formats
$terms = get_terms('post_format','hide_empty=0');
?><pre><?php var_dump($terms); ?></pre><?php
This is actually one flaw in the post format system. I don’t know if this was done on purpose. Unfortunately, you can’t add new post formats. So you can’t register a standard
post format. You will need to go and rethink your setup when adding a meta box for posts that does not have a post format assigned to it
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
- Next Post Link in format
- Mass post format changer?
- Displaying cf post formats with oembed
- Custom formatting
- How do I query by post format in WordPress 3.1
- How to filter by post-format in admin?
- post formats – how to switch meta boxes when changing format?
- Is it possible to remove the “standard” post format?
- Custom post types vs post formats : future-proofing – is one less “future proof” than another?
- Does WordPress generate an automatic page for post formats?
- Post Format Archive template name for theme folder?
- Get post only from ‘standard’ post format
- How can I add dropdown widget/box to admin post page?
- Update caption for metabox gallery images
- How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1
- How to get post attachments in gallery post format template
- Change post format using custom field
- How to create an archive for all posts that do not have a post format?
- How does WP detect format type (and can I make use of this)?
- How to generate a featured image from a video embeded in a metabox
- How to load a different header based on post format?
- Query different number of posts with different formats in one go
- How to filter posts by format and category via url?
- WordPress As A Shared Items Collection
- How to filter posts by post format “standard” from wp-json api?
- show a post from a specific post format
- Remove certain post-formats from showing in blog?
- Set Post Format if find a string in title or post content
- WordPress add post format support not working
- URL of a custom post type’s post format archive?
- Assign post format to categories
- Include Post Format in permalink
- Post Format Default Content
- Exclude post format from navigation
- Post titles below the post format content
- Is There a Difference Between Taxonomies and Categories?
- How to exclude post formats from wordpress recent posts in a tabs widget [closed]
- Is it possible to filter the display name for post formats for display in the Formats meta box?
- Query only the posts with a post format of “audio”
- Get post format and use it as a CSS class in different spans
- How to make the ‘delete’ button inactive on some categories?
- How can I prevent posts with no title showing up in my query?
- How to add meta box for current post format?
- Display post formats differently on index.php (loop in function)
- Display the video of a post_format Video
- Make tag archive display post are ordered by post format
- How to create Page templates for showing Blog posts in different layouts?
- Post Format Link Validation Error
- Adding link post format to theme and permalink to rss feed
- How can I correctly redirect user to the submitted post and define a template for each new post in WordPress?
- A better code for no post format?
- Post Format Link using Guttenberg
- My custom theme text and content format
- How to get all posts in gallery post format template
- set_post_format called after wp_update_post when using bulk edit?
- Query posts in current category but not attachment format
- Why is my custom post type shown in the wrong place?
- Style post formats differently on the home page
- Custom single.php files for different post formats
- Remove Title, Editor and Meta Box Support Based on Post Formats
- WordPress Post Format If Statement?
- Exclude post formats in custom loop
- Display post format post in the sidebar
- How to reproduce the post format field in a front end form?