Support » Plugin: Wp-Pro-Quiz » Using short code in php

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xeno010


    Hello evilchinesefood,

    Do you have a weblink?
    Have you enabled [raw]?

    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 class="modal-body">
    	<?php echo do_shortcode('[WpProQuiz 1]' ?>
      <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
        <button class="btn btn-primary">Save changes</button>
    Plugin Author xeno010


    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

    Yes i do have a javascript error

    Uncaught TypeError: Object [object Object] has no method 'wpProQuizFront'
    (anonymous function)
    l jquery.js:2
    c.fireWith jquery.js:2
    v.extend.ready jquery.js:2

    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.