Thumbnail not displaying
-
ACF Pro – Version 5.3.8.1
ACF Recent Posts Widget – Version 4.5Problem 1)
The ‘display thumbnail’ checkbox is not working. To be fair, however, I’m using ACF for the images attached to my post, but addedfunction 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/
- The topic ‘Thumbnail not displaying’ is closed to new replies.