WordPress.org

Support

Support » Alpha/Beta » [Resolved] Hide post formats

[Resolved] Hide post formats

  • Hi all WP experts!

    Let’s say I will only use the “Standard”, “Image”, “Video” and “Audio” post formats. Is there a way I can hide the others in the admin panel since I won’t be using them?

    Cheers,
    W

Viewing 7 replies - 1 through 7 (of 7 total)
  • Post formats are supported by your theme. The command is in the functions.php file. Just look for something like:

    add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );

    and delete the element you don’t want to you use inside the array().

    http://codex.wordpress.org/Post_Formats

    esmi

    @esmi

    Forum Moderator

    In WordPress 3.5, your theme controls what post formats are available, so check it’s functions.php file. In WordPress 3.6 (due out shortly), WordPress core will be supporting all post formats.

    Hey guys, thanks for the replys.

    So I edited the functions.php but they’re all still appearing in the admin panel…

    I’m using/testing the 3.6 version.

    esmi

    @esmi

    Forum Moderator

    In WordPress 3.6 core be supports all post formats automatically and by default. You could try using remove_theme_support() but I’m not sure (as yet) if this will work with the new post format api.

    Hi,

    Not sure if I am doing something wrong or the WP3.6 (beta 3) doesn’t support the feature, but removing certain post formats doesn’t work:

    remove_theme_support( 'post-formats', array( 'image', 'chat', 'aside' ) );

    …neither…

    remove_theme_support( 'structured-post-formats', array( 'image', 'chat', 'aside' ) );

    Hoping this will work in later versions of WP… Or are we left with hiding the post format selectors with CSS in admin?

    Per http://wordpress.org/support/topic/hide-allsome-post-formats?replies=4&message=closed

    This is no longer working in 3.6-Beta3

    Can someone open a trac ticket?

    Moderator Sergey Biryukov

    @sergeybiryukov

    WordPress Dev

    • #23929: Ability to remove post format UI
    • #24059: All post formats filter to limit which formats a user can choose
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Hide post formats’ is closed to new replies.
Skip to toolbar