Random displaying of post
-
Hi there,
I’ve made custom post type “products” for promo banners which contains name, link and image – all made with ACF. Is there a way, how to go through these posts and randomly choose one of them (one product) and display it on front end? Is it possible to do that without WP query? Just a loop through posts, get their IDs and then based on ID of one of them show what I need. Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Random displaying of post’ is closed to new replies.