Limit 200 questions | WordPress.org

[ad_1]

Hi callimmak,
first, thank you for your offer to help translate HD Quiz into Italian! The current branch 1.x is not translation ready yet, but a future 2.x release will be. I’ll keep you in mind for when the time comes!

There is no limit to how many questions can be added to a quiz. However, your limit of 200 is very interesting. The page that lists all of your attached questions shows 200 at a time and you have to select the “NEXT QUESTIONS” button to see the next page of questions. This is done to help sites with poor/slow hosts.

If you do not see this button for some reason, then something on your site is probably limit how many items can appear in a single query. Luckily, I included an override for such an occasion.

You will need to edit your theme’s functions.php file to add the following line of code. NOTE: backup this file before making any changes.

If you add the following after the opening <?php in that file, you will be able to change how many questions can appear in that list before pagination.

define("HDQ_PER_PAGE", 200); Just change the 200 to a higher number, like 500 (or however many questions you have in your largest quiz).

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer