Support » Plugin: HD Quiz » Force jQuery Pagination to x number of questions

  • Resolved rathianSpike


    Can you force jquery to always show just 50 questions instead of having to use wp pagination?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Harmonic Design


    There is no easy way. The “long” way is to just edit every 50th question and check paginate. Even with ~2000 questions that’s only 40 questions you’d have to edit.

    When pagination is enabled on a question, extra HTML is created. So if you wanted to automate this so that every X question was paginated regardless of what question order or randomized etc is, then you’d need to add this extra html after each 50th question.

    <div class="hdq_jPaginate"><div class="hdq_next_button hdq_button" data-id="XXX">NEXT</div></div>

    replacing the XXX in data-id=”XXX” with the quiz ID.

    You could do this with javascript, or edit ./includes/functions.php to add a counter (to count how many questions have been printed) and print the needed html there. Just note that if you do the PHP version, then you will need to redo this change each time you update HD Quiz.

    Oh thank you so muchhh. I will try that

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.