Title: Shortcode not working in php
Last modified: April 23, 2022

---

# Shortcode not working in php

 *  Resolved [Xyzso](https://wordpress.org/support/users/wonglotr/)
 * (@wonglotr)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-php/)
 * Hi Mycred Support,
 * The following shortcode that created in PHP codes Tab are not working.
    -  [Badge](https://wordpress.org/support/topic/shortcode-not-working-in-php/[mycred_badge_evidence]?output_format=md)
    - Please refer to below attached link for screenshots.
    - SCREENSHOT 1:
       [https://www.dropbox.com/s/z9wm5yzzt4ory99/Screenshot_mycred%20shortcode%20not%20working%20in%20php.png?dl=0](https://www.dropbox.com/s/z9wm5yzzt4ory99/Screenshot_mycred%20shortcode%20not%20working%20in%20php.png?dl=0)
    - SCREENSHOT 2:
       [https://www.dropbox.com/s/8de54u34tx01j79/Screenshot_mycred%20not%20working%20on%20profile%20tab.png?dl=0](https://www.dropbox.com/s/8de54u34tx01j79/Screenshot_mycred%20not%20working%20on%20profile%20tab.png?dl=0)

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

 *  [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * (@arsalantariq)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-php/#post-15586918)
 * [@wonglotr](https://wordpress.org/support/users/wonglotr/),
 * Thank you for contacting us, Please use the updated plugin shared below also 
   do let us know how it is working for you.
 * **Download Link**: [https://we.tl/t-KT68oRmrYM](https://we.tl/t-KT68oRmrYM)
 *  Thread Starter [Xyzso](https://wordpress.org/support/users/wonglotr/)
 * (@wonglotr)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-php/#post-15587636)
 * Hello A. Tariq,
 * Thank you for your reply. First of all , are you a PHP Programmer ? If not , 
   please direct to whom know on how to solve this problem.
 * After do a fresh reinstallation, using the download link as provided by you at
   Download Link: [https://we.tl/t-KT68oRmrYM](https://we.tl/t-KT68oRmrYM) , this
   problem REMAIN UNSOLVED.
 * Please take a look at several screenshots below.
 * (1) shortcode [mycred_badge_evidence] is working fine when display in WordPress
   page using Elementor Page Builder to show the message of “Evidence not found”.
   Please refer to below screenshot at dropbox link.
    [https://www.dropbox.com/s/tmxg6mcywt2tsy1/%281%20mycred%29%20-%20It%20is%20working%20in%20Wordpress%20Page.png?dl=0](https://www.dropbox.com/s/tmxg6mcywt2tsy1/%281%20mycred%29%20-%20It%20is%20working%20in%20Wordpress%20Page.png?dl=0)
 * (2) When we do PHP code customisation for the shortcode of [mycred_badge_evidence]
   in PHP files, want to display it in Member Account TAB, it is NOT WORKING , NEVER
   show “Evidence not found” message. These are the PHP codes we wrote for :
    -  [Badge](https://wordpress.org/support/topic/shortcode-not-working-in-php/[mycred_badge_evidence]?output_format=md)
    - Is the above PHP codes that we used correct ????
       Please refer to below TWO(
      2) screenshots at dropbox links for your more understanding.
    - (1)
       [https://www.dropbox.com/s/s92g17z5qqeerdp/%282%20mycred%29%20-%20It%20is%20NOT%20working%20in%20PHP%20Backend%20File.png?dl=0](https://www.dropbox.com/s/s92g17z5qqeerdp/%282%20mycred%29%20-%20It%20is%20NOT%20working%20in%20PHP%20Backend%20File.png?dl=0)
    - (2) [https://www.dropbox.com/s/74i94umvaa90pg7/%283%20mycred%29%20not%20showing%20Evidence%20not%20found%20message.png?dl=0](https://www.dropbox.com/s/74i94umvaa90pg7/%283%20mycred%29%20not%20showing%20Evidence%20not%20found%20message.png?dl=0)
 *  [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * (@arsalantariq)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-php/#post-15591184)
 * [@wonglotr](https://wordpress.org/support/users/wonglotr/),
 * Badge evidence does not show on the profile page. It needs a User ID and Badge
   ID then it will work. You need to pass the User ID and Badge ID in the URL parameter.

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

The topic ‘Shortcode not working in php’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=3512531)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-working-in-php/#post-15591184)
 * Status: resolved