Title: do_shortcode ?
Last modified: March 5, 2020

---

# do_shortcode ?

 *  Resolved [sebbbl](https://wordpress.org/support/users/sebbbl/)
 * (@sebbbl)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-14/)
 * Hi,
 * I’m trying to use gamipress_link in a custom template with a do_shortcode, but
   I can’t get it to work, here’s my code :
 *     ```
       $gamipress = do_shortcode('[gamipress_link href="'.$link.'?utm_source=mywonderfulwebsite&utm_medium=link" label="Click here." target="_blank" title="Click here"]');
       $result = '<div class="container-fluid text-center"style="padding-top:1%;"><p>Website is loading, please wait. If it doesn't work, '.$gamipress.'</p></div>';
       ```
   
 * Link opens in a new tab as expected, but points are not added.
 * Do you have any clue ?
 * Thanks in advance,
    Seb.

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

 *  Plugin Author [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * (@rubengc)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-14/#post-12511409)
 * Hi [@sebbbl](https://wordpress.org/support/users/sebbbl/)
 * Is possible that Link script (which handles the award process) doesn’t gets enqueued
   using this way
 * Try to force this script enqueuing by adding this line:
 *     ```
       add_action( 'wp_enqueue_scripts', 'gamipress_link_enqueue_scripts', 100 );
       ```
   
 * Also, you should check how have you configured your points award, and if the 
   link configuration matches your points award setup
 * For example, if you have setup the event “Click on a link with a specific identifier”
   check that you are passing exactly the same identifier (id attribute) to the [
   gamipress_link] shortcode
 * Best regards
 *  Thread Starter [sebbbl](https://wordpress.org/support/users/sebbbl/)
 * (@sebbbl)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-14/#post-12511557)
 * Thanks for your answer. I tried to force the script, but no more results. Reward
   is set up to “click any link”.
 *  Plugin Author [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * (@rubengc)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-14/#post-12511708)
 * Hi [@sebbbl](https://wordpress.org/support/users/sebbbl/)
 * Points awards has a field to limit the number of times the user can earn the 
   amount of points, have you checked this setting? (Its behind the points amount
   field)
 * Also, have you tried to place the shortcode in a post/page content?
 * If none of the previous solutions work, then is possible that there is a conflict
   with your theme or a plugin so the most recommended is to perform a conflict 
   test to check that any other script is blocking our add-on functionallity
 * Best regards
 *  Thread Starter [sebbbl](https://wordpress.org/support/users/sebbbl/)
 * (@sebbbl)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-14/#post-12511718)
 * Shortcode works fine in a standard page or post, settings are ok.
 *  Plugin Author [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * (@rubengc)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-14/#post-12511776)
 * Hi [@sebbbl](https://wordpress.org/support/users/sebbbl/)
 * Then you need to investigate by yourself why is not working in the custom way
   you want because we can only provide support only in the standard way
 * Best regards

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

The topic ‘do_shortcode ?’ is closed to new replies.

 * ![](https://ps.w.org/gamipress-link/assets/icon-256x256.png?rev=2208436)
 * [GamiPress - Link](https://wordpress.org/plugins/gamipress-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gamipress-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gamipress-link/)
 * [Active Topics](https://wordpress.org/support/plugin/gamipress-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gamipress-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gamipress-link/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/do_shortcode-14/#post-12511776)
 * Status: resolved