• Since upgrading to WordPress 4.0.1 this plugin disables the Featured Image. I also tried this on a completely new install of wordpress with no other plugins and using the 2014 theme and no luck. As soon as the plugin is activated, the Featured Image is no longer available in posts and pages in the backed.

    But if a featured image has already been uploaded, it will still show on the front end.

    Any chance there is a fix for this? I’m at the tail end of a site that uses this great plugin.

    Thanks

    https://www.ads-software.com/plugins/social-media-aggregator/

Viewing 3 replies - 1 through 3 (of 3 total)
  • garrettblakeman

    (@garrettblakeman)

    I’m really late on this but it’s line 94 of im-social-aggregator.php that causes this issue

    add_theme_support('post-thumbnails', array($this->post_type));

    I removed it and it seems to be fix this problem but I’ll need to look into it more, a lot of this plugin needs quite an overhaul.

    This should certainly be fixed by the plugin author, because the plugin is overriding the theme setting, but an alternative to modifying the plugin code is to override it again in your theme functions.php by setting a higher priority, eg. like this:

    function my_social_media_aggregator_fix() {
    
    	add_theme_support( 'post-thumbnails' );
    
    }
    add_action( 'init', 'my_social_media_aggregator_fix', 99 );

    I resolved this by adding a conditional to ensure the theme doesn’t already support this feature. I may do the theme override to avoid having to modify plugin code, but this is another alternative fix that may help someone.

    if ( !current_theme_supports( 'post-thumbnails') ) {
        add_theme_support('post-thumbnails', array($this->post_type));
    }

    I’d love to see the plugin updated to address this — I’m very excited about the potential.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blocking Featured Image’ is closed to new replies.