WPIntell

Source evidence

Remove Column from Pages?

Add Featured Image Column 路 support 路 2015-10-04T09:19:00+00:00

mixedsentiment
mediumseverity
0.72relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 26 rows with source links

15.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Chris Borgman resolved
It鈥檚 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!!

Comments

5 shown
Robin Cornett 2015-10-05T02:28:00+00:00

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

swinggraphics 2015-10-16T18:17:00+00:00

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 );

Chris Borgman 2015-10-16T18:43:00+00:00

Oh wow, I was wondering why this was not working. But it is NOW!! Thank you swinggraphics!!! 馃檪

Robin Cornett 2015-10-16T18:50:00+00:00

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!

Chris Borgman 2015-10-16T19:14:00+00:00

No worries Robin, thanks for the great plugin!!