Title: PHP Code for Quiz
Last modified: August 22, 2016

---

# PHP Code for Quiz

 *  [Media800](https://wordpress.org/support/users/media800/)
 * (@media800)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-quiz/)
 * I would like to implement the quizzes as php code directly into them theme files
   because the theme options is not picking the shortcode. Would you please provide
   the php code?
 * [https://wordpress.org/plugins/quiz-master-next/](https://wordpress.org/plugins/quiz-master-next/)

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

 *  [binaryboy](https://wordpress.org/support/users/binaryboy/)
 * (@binaryboy)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-quiz/#post-5836203)
 * It sounds like you’re looking for do_shortcode(), which will process all shortcodes
   in a string, or would that not work in this case? See [do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)
 *  [Frank Corso](https://wordpress.org/support/users/fpcorso/)
 * (@fpcorso)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-quiz/#post-5836224)
 * Greetings Media800:
 * Thank you for choosing to use this plugin! The plugin does not have a function
   built in for displaying the quiz using just php code. However, you could very
   well use the do_shortcode that binaryboy mentioned.
 * It would be something like this:
 *     ```
       echo do_shortcode( '[your quiz shortcode]' );
       ```
   
 * and then replace the “your quiz shortcode” with the shortcode from the Quizzes
   page for your quiz.

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

The topic ‘PHP Code for Quiz’ is closed to new replies.

 * ![](https://ps.w.org/quiz-master-next/assets/icon-128x128.png?rev=3158087)
 * [Quiz and Survey Master (QSM) - Easy Quiz and Survey Maker](https://wordpress.org/plugins/quiz-master-next/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quiz-master-next/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quiz-master-next/)
 * [Active Topics](https://wordpress.org/support/plugin/quiz-master-next/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quiz-master-next/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quiz-master-next/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 3 participants
 * Last reply from: [Frank Corso](https://wordpress.org/support/users/fpcorso/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/php-code-for-quiz/#post-5836224)
 * Status: not resolved