Issue with Posts Module with Custom Post Type when trying to order by Random

I’m trying to set a Posts Module to sort my CPT items randomly. I have this set to Order By: Random and I have tried both Ascending and Descending.

I have the exact same setup working on another WordPress site I just built, however, I have a completely different CPT on that site. Is it possible something with my CPT fields (using Pods) is affecting this?

Some budget hosts like flywheel and wpengine for example disable RAND() in the database to not degrade the db server for the 1000s of others you share it with, might be worth checking for that, if that fails you should contact the module vendor, Powerpack in your case.

Hello, thank you for the reply here.

I did some further research and discovered that WP Engine does indeed disable RAND() in the database by default. However, they provide an easy toggle in the backend to enable this. Thank you for the help.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.