• Resolved mistoll

    (@mistoll)


    Hey,
    currently my instagram feed is not showing on the frontend of my page. In the plugin backend page i can see the live preview.

    The Feed is included via an acf field from that i get the shortcode. Then i do

    <?php $insta_shortcode = get_field('instagram_short_code'); ?>
            <?php echo do_shortcode($insta_shortcode); ?>

    Some code is included by the shortcode, but the images aren’t loaded.

    I have conntected to n instagram business account.
    I tried it with chrome and firefox on mac.

    Maybe i forgot to activate something?

    Thanks for your help
    Michael Stoll

    • This topic was modified 4 years, 6 months ago by mistoll.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mark Zahra

    (@markzahra)

    Hi @mistoll, we do have some possible causes and solutions documented here. Please have a look and test them out.

    Can you also point me to the section of your website that should be displaying the Instagram feed? We’ll take a look to see if there’s anything that stands out there.

    Thread Starter mistoll

    (@mistoll)

    Hi @markzahra
    thanks for the fast response. I already have read this, and it don’t helped me.
    I just have the ACF Pro Plug-In and Spotlight. And i don’t changed anything with caching, WP rest api or dash icons.

    Sure, it’s at the start page, near the bottom, over the section “Sponsoren”.
    Thanks for your help.

    Plugin Author Mark Zahra

    (@markzahra)

    From having another look at your website, we can see that Spotlight’s HTML is not being rendered at all. In similar cases, the cause has been the use of particular options in optimization plugins.

    Aside from ACF Pro and Spotlight, do you have any other plugins at all activated on your website?

    Thread Starter mistoll

    (@mistoll)

    No i have no other plugins.

    Looks like i miss some javascript or the js can not be loaded.

    Plugin Author Mark Zahra

    (@markzahra)

    Yes, that seems to be the case. Is there any optimization being done on the host’s side by any chance? For example, minifying of JS or CSS files?

    If you’d like to contact us directly we can get into some more detail and take a closer look

    Thread Starter mistoll

    (@mistoll)

    Thanks @markzahra
    I send a support request via the form.

    Plugin Author Mark Zahra

    (@markzahra)

    Thanks, I’ll get back to you very soon. For others reading this thread, I’ll include an update later on what the cause and solution will be.

    Plugin Author Mark Zahra

    (@markzahra)

    We’ve confirmed that the issue for @mistoll stemmed from the fact that the Instagram feed was being displayed using Advanced Custom Fields.

    The shortcode is working, but is not loading the required JavaScript and CSS to make it load completely.

    This happens because the shortcode is not part of the page content. Normally, a shortcode can tell WordPress to load JS and CSS files. But since the shortcode is in a custom field, by the time that field and shortcode are being rendered on the page (while using ACF), it’s already too late to add more JS and CSS.

    However, we are working on a way to go around this WordPress limitation so we can allow the shortcode to be used inside custom fields.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Feed is not showing in frontend’ is closed to new replies.