Conversation
supportIt鈥檚 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鈥檛 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://wordpress.org/plugins/add-featured-image-column/
There is a filter for this, if you are willing/able to add a bit of code to your theme鈥檚 functions.php file, or a functionality plugin. Here鈥檚 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 );
Oh wow, I was wondering why this was not working. But it is NOW!! Thank you swinggraphics!!! 馃檪
My apologies Chris, swinggraphics was exactly right. I鈥檇 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鈥檝e 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!
No worries Robin, thanks for the great plugin!!
There is a filter for this, if you are willing/able to add a bit of code to your theme鈥檚 functions.php file, or a functionality plugin. Here鈥檚 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 );
Oh wow, I was wondering why this was not working. But it is NOW!! Thank you swinggraphics!!! 馃檪
My apologies Chris, swinggraphics was exactly right. I鈥檇 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鈥檝e 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!
No worries Robin, thanks for the great plugin!!