Default Featured Image Breaks User Submitted Posts Plugin Functionality
-
User Submitted Posts is a plugin that allows users to submit posts through the front end. This includes the ability to add a featured image. However, the user provided featured image will not be used if a default featured image has been set in Chaplin.
This is because User Submitted Posts will not add the featured image if has_post_thumbnail returns true. When a default featured image has been set in Chaplin, has_post_thumbnail always returns true, making it impossible to set the featured image.
Would it be possible to apply a filter to the $disable_fallback_image variable in the chaplin_filter_has_post_thumbnail function in template-tags.php? (Similar to what is currently done in the chaplin_filter_fallback_image function.) That would allow me to override that variable’s value in this specific scenario.
The topic ‘Default Featured Image Breaks User Submitted Posts Plugin Functionality’ is closed to new replies.
