0

I added a meta box to my theme (WordPress admin) for video, image, gallery and chat, but I can't add a meta box for the standard post.

When I add post type support for "Standard", the standard post format in admin is duplicated. When selecting the 2nd "Standard" from the list, a meta box is added, but it should do that for the 1st "Standard" and not show it twice.

enter image description here

  • 2
    Can you show us the code you are using? – cybmeta Sep 13 '14 at 17:08
  • This might turn out an interesting question, for all is known so far. But please follow the request of @cybmeta and incorporate relevant code. – Johannes Pille Sep 14 '14 at 15:21
0

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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.