Instagram API brings only 1st image
-
Hi,
While using API for Instagram element of WoodMart to show my latest posts on my home page, it brings only the 1st image even if I have set number of photos to 8 and 4 photos per row.
At API integrations, I can see normally Instagram API connected with my desired account.
Waiting for your further advice on this.
Regards,
Dimitris
Attachments:
You must be
logged in to view attached files.
Hello,
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_action( 'image_sideload_extensions', function($allowed_extensions) {
$allowed_extensions[] = 'heic';
return $allowed_extensions;
});
Kind Regards
Hi,
Your recommended snippet worked fine for my case!
Is it a theme bug that will be fixed at the next updates or not?
Hello,
It is due to a new format for images used by Instagram. And this format is not supported by WordPress by default. This code snippet allows to use this format in WordPress.
Kind Regards