Title: Using short code in php
Last modified: August 21, 2016

---

# Using short code in php

 *  [evilchinesefood](https://wordpress.org/support/users/evilchinesefood/)
 * (@evilchinesefood)
 * [13 years ago](https://wordpress.org/support/topic/using-short-code-in-php/)
 * I cant get the do_shortcode command to work for this plugins shortcode. IS there
   a reason why it doesnt work? It displays the quiz but nothing is clickable
 * [http://wordpress.org/extend/plugins/wp-pro-quiz/](http://wordpress.org/extend/plugins/wp-pro-quiz/)

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

 *  Plugin Author [xeno010](https://wordpress.org/support/users/xeno010/)
 * (@xeno010)
 * [13 years ago](https://wordpress.org/support/topic/using-short-code-in-php/#post-3750550)
 * Hello evilchinesefood,
 * Do you have a weblink?
    Have you enabled [raw]?
 *  Thread Starter [evilchinesefood](https://wordpress.org/support/users/evilchinesefood/)
 * (@evilchinesefood)
 * [13 years ago](https://wordpress.org/support/topic/using-short-code-in-php/#post-3750553)
 * Unfortuantly i dont have a link. Its on a development server behind closed doors
   at the moment. I can share some code though. Im using bootstraps modal popups
   and then placeing a quiz inside it.
 *     ```
       <!-- Modal Quiz -->
       <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
         <div class="modal-header">
           <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
           <h3 id="myModalLabel">Quiz Popup</h3>
         </div>
         <div class="modal-body">
       	<?php echo do_shortcode('[WpProQuiz 1]' ?>
   
         </div>
         <div class="modal-footer">
           <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
           <button class="btn btn-primary">Save changes</button>
         </div>
       </div>
       ```
   
 *  Plugin Author [xeno010](https://wordpress.org/support/users/xeno010/)
 * (@xeno010)
 * [13 years ago](https://wordpress.org/support/topic/using-short-code-in-php/#post-3750561)
 * Pls `<?php echo do_shortcode('[WpProQuiz 1]'); ?>` 🙂
 * Have you JavaScript errors on your page? (Chrome developer tools or Firebug)
 * Check the options under “global settings” -> “settings in case of problems” in
   the wp-pro-quiz adminmenu
 *  Thread Starter [evilchinesefood](https://wordpress.org/support/users/evilchinesefood/)
 * (@evilchinesefood)
 * [13 years ago](https://wordpress.org/support/topic/using-short-code-in-php/#post-3750582)
 * Yes i do have a javascript error
 *     ```
       Uncaught TypeError: Object [object Object] has no method 'wpProQuizFront' totaltruckcenters.com:385
       (anonymous function) totaltruckcenters.com:385
       l jquery.js:2
       c.fireWith jquery.js:2
       v.extend.ready jquery.js:2
       A
       ```
   
 * What does this mean? Also while I have you if you may, Is there a way i can have
   php code ran after a user gets 100% on the quiz. I have tried adding the php 
   code to the graduation part of the code in a quiz setting but the it doesnt run
   it outputs it as text.

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

The topic ‘Using short code in php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-pro-quiz_2e3c46.svg)
 * [Wp-Pro-Quiz](https://wordpress.org/plugins/wp-pro-quiz/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pro-quiz/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pro-quiz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pro-quiz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pro-quiz/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [evilchinesefood](https://wordpress.org/support/users/evilchinesefood/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/using-short-code-in-php/#post-3750582)
 * Status: not resolved