wpsmith / genesis-sandbox-featured-content-widget

Genesis Sandbox Featured Content Widget. Based on Nick Croft's Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
39 stars 21 forks source link

Remove image if custom field has a value #34

Open saxisme opened 10 years ago

saxisme commented 10 years ago

Hi, I'd like to remove the featured image if a custom field has a certain value. I tried with remove_action( 'gsfc_before_post_content', array( 'GS_Featured_Content', 'do_post_image' ) ); remove_action( 'gsfc_post_content', array( 'GS_Featured_Content', 'do_post_image' ) ); remove_action( 'gsfc_after_post_content', array( 'GS_Featured_Content', 'do_post_image' ) ); but I am having problems with it: it's removing the image only from the first post.

How should I do it? Thanks

PS: I am writing here since on WP support page you are redirecting support on GitHub