Can't display post thumbnail with jQuery
-
Hi,
I am trying to display a post thumbnail using jQuery, but for some reason it is not showing up.
Here’s my code:$.getJSON('https://interelgroup.com/api/get_post/?post_id=4683', {format: "json"}, function(data) { $('#belgium-posts article[data-index="'+key+'"]').find("img").attr("src", data.post.thumbnail_images.full.url); });
What am I doing wrong?
Help appreciated.Thank you!
- The topic ‘Can't display post thumbnail with jQuery’ is closed to new replies.