Title: Something wrong &#8211; token issue
Last modified: February 3, 2020

---

# Something wrong – token issue

 *  Resolved [myuuu11](https://wordpress.org/support/users/myuuu11/)
 * (@myuuu11)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/something-wrong-token-issue/)
 * Hello,
 * I have an issue, but only when I want to use the php function (with the function
   wdi_feed(array(‘id’=>’1’)); or with integrated by shortcut function do_shortcode(‘[
   wdi_feed id=”1″]’ )
 * So … When I create a hashtag filter, and integrate it to a page, it works perfectly.
   When I try to use it into a php template, I have always the same issue:
 * Something is wrong. Response takes too long or there is JS error. Press Ctrl+
   Shift+J or Cmd+Shift+J on a Mac to see error in console or ask for free support.
   Instagram token is invalid or expired. Please reset token and sign-in again to
   get new one.
    Admin warning: there is one or more private user in this feed().
   Their media won’t be displayed.
 * Obviously I have reset my token many time. And checked my console, without any
   warnings or errors.
 * And I repeat, but in the same time, with the same flux, it works perfectly on
   a page with the shortcut.
 * I don’t know what I should do now … Any help please?
 * Regards

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Zhanna Khachatryan](https://wordpress.org/support/users/zhannak/)
 * (@zhannak)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/something-wrong-token-issue/#post-12401854)
 * Hello [@myuuu11](https://wordpress.org/support/users/myuuu11/),
 * Thanks for your inquiry.
 * If it works with a shot-code that it should work with PHP function too.
 * Can you please write in which function you call it, where exactly?
 *  Thread Starter [myuuu11](https://wordpress.org/support/users/myuuu11/)
 * (@myuuu11)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/something-wrong-token-issue/#post-12406339)
 * Hello [@zhannak](https://wordpress.org/support/users/zhannak/)
 * Thanks for your answer
 * I call the function into a template file, not into a php function.
 * My code here:
 * <p class=”share_yours”>Some text here</p><br/>
    <?php echo wdi_feed(array(‘id’
   =>’1’)); ?>
 * Please notate I have the same issue with the code
    <?php echo do_shortcode( ‘[
   wdi_feed id=”1″]’ ); ?>
 * But it works perfectly into a page or an article, when I include it by the button,
   or when I write :[wdi_feed id=”1″]
 * To fix the issue, I have install another wordpress plugin (social slider widget)
   and it works.
    <p class=”share_yours”>Some text</p><br/> <?php echo do_shortcode(‘[
   jr_instagram id=”3″]’ ); ?>
 * I prefer your plugin but I can’t use it …

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Something wrong – token issue’ is closed to new replies.

 * ![](https://ps.w.org/wd-instagram-feed/assets/icon-256x256.png?rev=2140072)
 * [10WebSocial](https://wordpress.org/plugins/wd-instagram-feed/)
 * [Support Threads](https://wordpress.org/support/plugin/wd-instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/wd-instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wd-instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wd-instagram-feed/reviews/)

## Tags

 * [token](https://wordpress.org/support/topic-tag/token/)

 * 2 replies
 * 2 participants
 * Last reply from: [myuuu11](https://wordpress.org/support/users/myuuu11/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/something-wrong-token-issue/#post-12406339)
 * Status: resolved