• Resolved Chris Borgman

    (@chrisborgman)


    It’s amazing how hard it is to find a clean simple plugin to add this feature without making it a mess. So thank you for creating this!!! ??

    I don’t really use Featured Images for Pages, some plugins offer the option of being able to choose the post type to add the Featured Image Column. Would you consider adding this option?

    If not, what CSS (I use an admin CSS plugin) would I use to remove the column from only pages?

    Thanks!

    https://www.ads-software.com/plugins/add-featured-image-column/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    There is a filter for this, if you are willing/able to add a bit of code to your theme’s functions.php file, or a functionality plugin. Here’s the snippet:

    add_filter( 'addfeaturedimagecolumn_post_types', 'rgc_remove_pages' );
    function rgc_remove_pages( $post_types ) {
    	unset( $post_types['page'] );
    	return $post_types;
    }

    That should remove the column from your pages list in the admin, but you can use it for any post type. HTH

    The plugin does not include code to apply such a filter. This must be added at line 32 of class-addfeaturedimagecolumn.php first:

    $post_types = apply_filters( 'addfeaturedimagecolumn_post_types', $post_types );

    Thread Starter Chris Borgman

    (@chrisborgman)

    Oh wow, I was wondering why this was not working. But it is NOW!!

    Thank you swinggraphics!!! ??

    Plugin Author Robin Cornett

    (@littlerchicken)

    My apologies Chris, swinggraphics was exactly right. I’d updated my code on Github but failed to update it here on the repository (obviously I need to give myself a bigger window after coming off of vacation before I say things like this). I’ve just pushed the update here as well, so you can safely update to version 1.0.1 and your code will work.

    Sorry about that, and thank you to swinggraphics for catching that!

    Thread Starter Chris Borgman

    (@chrisborgman)

    No worries Robin, thanks for the great plugin!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Column from Pages?’ is closed to new replies.