• Resolved kittensightings

    (@kittensightings)


    Hello,

    I’m currently running WordPress from a localhost because this is my first time building a website, and I’m testing it before I upload it to my site.

    I’ve added a box for Authors to fill in for their Instagram ID. I then am trying to add this widget to an Author Page Template through the php file.

    By using <?php echo $curauth->instagramid; ?> I am able to recall the ID each Author added. It works just by itself, but when I try to add it to the shortcode of this widget like so:

    <?php echo do_shortcode('[instagram-feed id="<?php echo $curauth->instagramid; ?>"]');?>

    The widget simply keeps loading, and never shows anything. I’ve set up the plugin properly, and it even works when I put in the ID itself rather than trying to recall it.

    Is there something I’m doing wrong, or something I missed in the directions or FAQ? If you need anymore information please let me know. I have ever intention of purchasing this widget once I place the website online. Thank you so much.

    https://www.ads-software.com/plugins/instagram-feed/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey kittensightings,

    It looks like you nested a php tag. Try this:

    <?php echo do_shortcode('[instagram-feed id="' . $curauth->instagramid . '"]'); ?>

    Thread Starter kittensightings

    (@kittensightings)

    Perfect! Thank you so much. Works like a charm.

    I’ll be sure to buy the premium version and rate it as soon as it’s up online and running. Thank you so much again!

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Awesome! Glad we could could that working. Let me know if you ever need anything else.

    Thanks,

    Craig

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Instagram ID pulled from user profile not working’ is closed to new replies.