• Resolved kmcgeerpg

    (@kmcgeerpg)


    ACF Pro – Version 5.3.8.1
    ACF Recent Posts Widget – Version 4.5

    Problem 1)
    The ‘display thumbnail’ checkbox is not working. To be fair, however, I’m using ACF for the images attached to my post, but added

    function acf_set_featured_image( $value, $post_id, $field  ){
        if($value != ''){
    	    update_post_meta($post_id, '_thumbnail_id', $value);
        }
        return $value;
    }
    add_filter('acf/update_value/name=image', 'acf_set_featured_image', 10, 3);

    to my functions.php file to get wordpress to recognize my custom post $image as my featured image. Facebook seems to recognize it, but the ACFRPW does not.

    Problem 2)
    Ok, no big deal, right? I’m using a custom field for my image so I’ll just include the shortcode [acf image] in the widget.

    This results in ‘/wp-includes/images/media/default.png’ being added to each recent post, instead of the actual image being populated in the post by the $image field.

    I have this set up actually working on another site that is not using ACF Pro. No clue why it would work there and not here.

    https://rpg2016.wpengine.com/news

    https://www.ads-software.com/plugins/acf-recent-posts-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rafa? Gicgier

    (@gicolek)

    Hello kmcgeerpg,

    If the code works with non pro version, then it’s most likely connected with ACF Pro (which unfortunately is not supported by my plugin, due to slight changes in the code and the fact that it’s a paid plugin).

    Needless to say if your featured image is set properly then it should work. Is it?
    Have you got any other plugin installed which links to the default image?
    Or is it connected with the widget configuration?
    Finally it may also be connected with the fact that you have a different return value for your image field with Pro vs Free versions.

    If this won’t help I will try to recreate your issue at some point next week.

    Regards,
    Rafal

    Thread Starter kmcgeerpg

    (@kmcgeerpg)

    So I came back to it this morning and it’s working fine??? I was purging caches yesterday while I was working on it just to make sure it wasn’t some weird wordpress caching issue, and yet…

    I don’t even know what to tell you. I’m a little thrown. The display thumbnail check box is working fine today. I switched it on and off a few times just to make sure.

    If I try to use the shortcode it still doesn’t work, but the featured images are being set correctly, at least.

    I’m sorry to have bothered you, I guess.

    Plugin Author Rafa? Gicgier

    (@gicolek)

    Hehe, I’m glad it’s been sorted out for you ??

    Cache is actually a fairly common problem. I find myself struggling with a cache software pretty often ??

    Regards,
    Rafal

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Thumbnail not displaying’ is closed to new replies.