You can edit the plugin.php file of the plugin and add an additional line of code just after
$args = array(
'post_type' => 'cpt_background',
'posts_per_page' => -1,
'update_post_term_cache' => false, // don't retrieve post terms
'update_post_meta_cache' => false, // don't retrieve post meta
);
so as to look like:
$args = array(
'orderby' => 'rand'
'post_type' => 'cpt_background',
'posts_per_page' => -1,
'update_post_term_cache' => false, // don't retrieve post terms
'update_post_meta_cache' => false, // don't retrieve post meta
);
Try this and let me know if it works for you.
Thread Starter
gemba
(@gemba)
Thanks, that works great! (Just missing a comma in the code if anyone else needs this)
$args = array(
'orderby' => 'rand',
'post_type' => 'cpt_background',
'posts_per_page' => -1,
'update_post_term_cache' => false, // don't retrieve post terms
'update_post_meta_cache' => false, // don't retrieve post meta
);
Yes, you are right about the comma! Glad to hear that works great!
A review would be really appreciated. Thanks!
Thank you sir! Topic is now resolved.