• Resolved Brad Brown

    (@bradbrownmagic)


    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.

Viewing 1 replies (of 1 total)
  • Thread Starter Brad Brown

    (@bradbrownmagic)

    It occurred to me that I can just add a filter on has_post_thumbnail with a higher priority to override what Chaplin is doing, so I don’t really have to have a filter in chaplin_filter_has_post_thumbnail. So, I’m OK, but it probably wouldn’t be a bad idea for Chaplin to allow for an override.

    Thanks again.

Viewing 1 replies (of 1 total)

The topic ‘Default Featured Image Breaks User Submitted Posts Plugin Functionality’ is closed to new replies.