

Adding the Random Content Block to your page using the WordPress block editor
Blocks Randomizer adds dynamic variety to your website by randomly displaying blocks from a collection you define. Simply add the “Blocks Randomizer” container block to any page or post, fill it with your desired content blocks, and the plugin will automatically select and display one (or more) randomly each time the page loads.
Perfect for creating fresh, engaging experiences for repeat visitors without manually updating content.
Rotating Testimonials
Create a collection of testimonial blocks and display a different customer review each time visitors load your page. Great for homepage hero sections or service pages.
Daily Tips & Quotes
Add multiple quote or paragraph blocks with tips, motivational quotes, or daily advice. Each page load presents fresh inspiration to your audience.
Random Call-to-Actions
Test different CTAs by randomly displaying various buttons, banners, or promotional blocks. Perfect for A/B testing messaging without complex tools.
Product Showcases
Rotate featured products, services, or portfolio items on your homepage to give equal visibility to different offerings.
Educational Content
Display random “Did You Know?” facts, learning tips, or course highlights to keep educational sites engaging for returning students.
Banner & Advertisement Rotation
Cycle through different promotional banners, partner logos, or advertisement blocks without needing a separate ad management plugin.
Seasonal Greetings
Add multiple greeting blocks for different occasions and let visitors see varied welcome messages throughout the year.
Team Member Spotlights
Showcase different team members randomly on your about page, giving everyone fair representation.
The Blocks Randomizer is built natively for the WordPress Block Editor (Gutenberg). It works as a container block that accepts any other blocks as children:
Simply add the Blocks Randomizer block anywhere you’d add any other block, and start building your randomized content collection.
Whether you’re looking to increase engagement, test different messaging, or simply add variety to your content, Blocks Randomizer makes it simple and intuitive.
Creating rotating customer testimonials is one of the most popular uses for the Blocks Randomizer. Here’s a step-by-step guide:
/randomPro tip: Use consistent formatting for all testimonials (same heading sizes, image dimensions, text styles) to ensure smooth visual transitions between random selections.
Rotating different call-to-action messages helps you test which messaging resonates best with your audience:
Pro tip: Keep the overall design structure similar across variations so the page layout remains consistent, but vary the messaging and emphasis to test different value propositions.
Pro tip 2: You can use different UTM values (specifically, utm_content) for your CTA buttons inside the randomizer, this way you can even track using any analytics solution (like Google Analytics, or Fathom Analytics, or Plausible Analytics) which CTA performs better.
For e-commerce sites, rotating product showcases give equal visibility to your catalog:
Pro tip: Group related products together or create themed product blocks (e.g., “Summer Collection,” “Best Sellers,” “New Arrivals”) for more cohesive random displays.
If you display ads, partner logos, or promotional banners, the randomizer helps distribute visibility:
Pro tip: Use the same aspect ratio for all banners to prevent layout shifts. Consider adding a Text block below images for additional context or disclaimers if needed.
Fine-tuning how many random blocks appear gives you precise control over your content:
Pro tip: The number you set is the maximum that will display. If you have fewer blocks inside the randomizer than the number specified, all available blocks will show.
Perfect for e-commerce sites looking to rotate products, promotions, and calls-to-action:
Example use case: Add and configure a grid block on your homepage, then add a randomizer inside of it, then add 5-10 featured products to the randomizer, set it to display 3 at a time, and visitors will see a different product selection on each visit.
Understanding how caching affects randomization is crucial:
WP Rocket:
– Random blocks work with WP Rocket’s page caching
– Content randomizes when cache regenerates (based on cache lifespan)
– For per-visit randomization, add pages to cache exclusions
– Consider using shorter cache lifespans for dynamic pages
W3 Total Cache:
– Compatible with page and object caching
– Random selection happens during cache generation
– Configure cache expiration based on how often you want new random content
– Use fragment caching to cache everything except the randomizer
WP Super Cache:
– Works with WP Super Cache out of the box
– Each cache refresh will select new random blocks
– Set appropriate cache timeout for your content rotation needs
LiteSpeed Cache:
– Fully compatible with LiteSpeed caching
– Random blocks cached until cache expires
– Use ESI (Edge Side Includes) for more dynamic behavior if needed
Cloudflare / CDN:
– CDN caching will serve the same version to all users until cache expires
– Configure page rules for pages with randomized content
– Consider shorter TTL (Time To Live) for dynamic pages
Key principle: The Blocks Randomizer performs server-side randomization. Whatever is selected gets cached. New random selection happens when cache regenerates.
The Blocks Randomizer is SEO-friendly since randomization happens server-side.
SEO best practices:
– Don’t place critical, unchanging SEO content in the randomizer
– Use the randomizer for supplementary elements (testimonials, CTAs, featured items)
– All variations should be topically relevant to the page’s main purpose
– Consider that search engines may index different random variations on different crawls
Randomize different contact forms or lead capture forms to determine which one performs better – collects more contacts or leads.
WPForms:
– Insert WPForms blocks inside the randomizer
– A/B test different form designs
– Rotate forms for different services or products
Contact Form 7:
– Add Contact Form 7 blocks to the randomizer
– Test different form layouts and field combinations
– Rotate forms for different audiences or purposes
Gravity Forms:
– Add Gravity Forms blocks to random rotation
– Test form conversion rates with different layouts
– Display appropriate forms based on random selection
Formidable Forms:
– Compatible with Formidable Forms blocks
– Randomize contact forms, surveys, or calculators
Display dynamic content for members or students:
LearnDash:
– Randomize course highlights or lesson previews
– Rotate student testimonials
– Display random course modules or topics
MemberPress:
– Rotate membership benefits or pricing tables
– Randomize member testimonials
– Display different membership tier highlights
LifterLMS:
– Randomize course showcases
– Rotate instructor spotlights
– Display random learning paths