Ajax Load More Logo
Out of the box Ajax Load More can not order posts by random, however it can be achieved by running a custom WP_Query that builds an array of post IDs – the post IDs are then passed into the post__in shortcode parameter for display.
Note: Ordering by random is very server intensive and some hosts (e.g. WPEngine) disallow this orderby query parameter completely.
« Back to Code Samples