Using short code in php (5 posts)

  1. evilchinesefood
    Posted 2 years ago #

    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


  2. xeno010
    Plugin Author

    Posted 2 years ago #

    Hello evilchinesefood,

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

  3. evilchinesefood
    Posted 2 years ago #

    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>
  4. xeno010
    Plugin Author

    Posted 2 years ago #

    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

  5. evilchinesefood
    Posted 2 years ago #

    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

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Wp-Pro-Quiz
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.