Hmmm.. this is interesting.
I can only think of two possibilities that could cause this.
1) Correct Quiz on Page?
Just to make sure, are you 100% sure that the quiz on the page is the same quiz where you set it to randomized?
2) Something else on your site is affecting how WordPress Queries work.
The thing is that if this were the case, then the randomize answer order would still work. But on your site, neither the question or answer order is changing.
Since your site is using Chinese characters, the issue might be that your installed version of WordPress or even PHP uses a different word or terminology for rand
– but I’m just guessing at this point.
Please try the following.
1. Switch theme to the default Twenty Twenty theme. If it now works, then we know that the issue lies with your theme.
2. If it is not your theme, then we need to test plugins. Deactivate all plugins except HD Quiz then test again. Then re-enable each plugin one by one until we find the culprit.
If that also fails, then the only other things I can think of would require a bit of work on your end.
The first is to edit HD Quiz directly and hardcode the random settings in.
Edit ./hd-quiz/includes/template.php
and change line 150
to
'orderby' => "rand", // defaults to menu_order
If this works then we know that the issue was something to do with your site being unable to retrieve the quiz setting for randomizing order.
If even hardcoding doesn’t work, then the only thing left to try is to enable error reporting. This will help us know if there is some fatal error on your site that is blocking HD Quiz from running default WordPress queries.
To enable “debug mode” you need to edit wp-config.php
found in the main installation folder of WordPress (usually the public_html
folder). From there, find the line define('WP_DEBUG', false);
and set it to true define('WP_DEBUG', true);
. If there is no WP_DEBUG
line, then you can add it above the comment /* That's all, stop editing! Happy blogging. */
Please keep me in the loop on anything you uncover as this is a super weird issue that has never come up before – so I’d love to be able to help you figure out the cause of this.