I am having some trouble modifying a plugin wordpress popular posts i installed.
It has an option to fetch thumbnails from a custom field, which i have entered as "image_facebook". But the thumbnails are not being displayed.
While checking the code i found that img src has post id instead of returning image URL.
I have narrowed down the problem to another plugin which i have installed [url removed, login to view] and while it is active I have to use "the_field ()" to fetch the custom field content instead of regular wordpress "get_post_meta" It is documented here [url removed, login to view]
I need to edit the code in the wordpress popular posts file to use the_field() function. In my theme files i am able to retrieve the Image URL via following code :-
<img src="<?php echo get_field('image_facebook'); ?>" alt="<?php the_title(); ?>" class="postImg" />
However I'm unable to find the right place in loop to add get_field.
A quick fix here will be highly appreciated.