WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hide post formats (8 posts)

  1. waak
    Member
    Posted 1 year ago #

    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

  2. David Choi
    Member
    Posted 1 year ago #

    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

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  4. waak
    Member
    Posted 1 year ago #

    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.

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  6. lemmonaid
    Member
    Posted 1 year ago #

    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?

  7. 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?

  8. Sergey Biryukov
    WordPress Dev
    Posted 1 year ago #

    • #23929: Ability to remove post format UI
    • #24059: All post formats filter to limit which formats a user can choose

Topic Closed

This topic has been closed to new replies.

About this Topic