How to preprocess Slickquiz shortcodes?
-
I am writing dozens of short quizzes for my mandarin course. To be more precise I am writing 3 quizzes for each of the 10 lessons. So I had the bright idea that it would be convenient for the students to find the quizzes in a table that shows which quizzes they have taken, the highest score and a link to popup the quiz in a lightbox.
I have the quiz-in-a-lightbox-thing working, and I am able to build the table with necessary information. The trouble is that I am my own shortcode to build the table (so that I can use it for multiple courses), but I am not successful at preprocessing the slickquiz shortcode in PHP.
When I use do_shortcode(“[slickquiz id=’123′]”) to process the code, I do not get the quiz markup. What I get is three lines of text:
Get Started!
Your Score:
Your Ranking:Is there a better way to preprocess the shortcode?
Any suggestions for how to make this work?Thanks!
- The topic ‘How to preprocess Slickquiz shortcodes?’ is closed to new replies.