Title: Shortcode bug
Last modified: August 20, 2016

---

# Shortcode bug

 *  Resolved [Stknerd](https://wordpress.org/support/users/stknerd/)
 * (@stknerd)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/shortcode-bug-1/)
 * Hi,
 * Displaying buttons using <?php … [hupso] … ?> shortcode on index posts link the
   main page URL not the post. That doesn’t happen on 3.7.
 * [http://wordpress.org/extend/plugins/hupso-share-buttons-for-twitter-facebook-google/](http://wordpress.org/extend/plugins/hupso-share-buttons-for-twitter-facebook-google/)

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

 *  Plugin Author [kasal](https://wordpress.org/support/users/kasal/)
 * (@kasal)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/shortcode-bug-1/#post-3429248)
 * If you add [hupso] to post’s text then the link should point to the URL of the
   post. Can you provide URL of your website where this can be seen?
 *  [michaelmfrankel](https://wordpress.org/support/users/michaelmfrankel/)
 * (@michaelmfrankel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-bug-1/#post-3429353)
 * Having the same issue. What I am trying to do is post the php short code under
   the $my_excerpt in my home.php so that under each excerpt on the home page, the
   Hupso Share Buttons are shown but they all link back to the home page instead
   of the target page. If you put the [hupso] in the post’s text then it shows up
   on the long full version of the post but not the excerpt. Anyway around this?
 *  Plugin Author [kasal](https://wordpress.org/support/users/kasal/)
 * (@kasal)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-bug-1/#post-3429354)
 * Can you provide URL of your website where this can be seen?
 *  [michaelmfrankel](https://wordpress.org/support/users/michaelmfrankel/)
 * (@michaelmfrankel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-bug-1/#post-3429355)
 * I can’t reproduce the occurrence now. I am not sure what I changed but it seems
   to be working now. Please disregard and thank you for responding!

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

The topic ‘Shortcode bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hupso-share-buttons-for-twitter-facebook-
   google_ccac59.svg)
 * [Hupso Social Media Share Buttons](https://wordpress.org/plugins/hupso-share-buttons-for-twitter-facebook-google/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hupso-share-buttons-for-twitter-facebook-google/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/)
 * [Active Topics](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [michaelmfrankel](https://wordpress.org/support/users/michaelmfrankel/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-bug-1/#post-3429355)
 * Status: resolved