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) rand
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.8 and PHP 7.4.
SourceWordPress plugins · Oct 24, 2026
01 / Source details
Aboutthistool.
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.
Key Features
Easy to Use : Works seamlessly with the WordPress Block Editor (Gutenberg)
Flexible Content : Add any type of block as a child – paragraphs, images, headings, galleries, custom blocks, and more
Multiple Display Options : Choose how many random blocks to show at once
No Coding Required : Simple drag-and-drop interface for managing randomized content
Performance Optimized : Lightweight and efficient randomization
Use Cases
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.
01Add the “Blocks Randomizer” block to your page or post
02Insert any blocks you want as direct children (top-level blocks will be picked during the randomization logic)
03Configure how many blocks to display at once (optional)
04Publish your page – visitors will see random content from your collection
05Update anytime by adding, removing, or editing child blocks
Using with the Block Editor (Gutenberg)
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:
Full compatibility with all core WordPress blocks (Paragraph, Image, Heading, Gallery, Button, Quote, etc.)
Drag-and-drop interface for easy block management within the randomizer
Live preview in the editor showing all your blocks (actual randomization happens on the front-end)
Block toolbar and settings work normally for blocks inside the randomizer
Simply add the Blocks Randomizer block anywhere you’d add any other block, and start building your randomized content collection.
Perfect For
Marketing and landing pages
Membership and community sites
Educational and training platforms
E-commerce and business websites
Blogs and content sites
Portfolio and agency websites
Whether you’re looking to increase engagement, test different messaging, or simply add variety to your content, Blocks Randomizer makes it simple and intuitive.
How to Create Rotating Testimonials
Creating rotating customer testimonials is one of the most popular uses for the Blocks Randomizer. Here’s a step-by-step guide:
06Create or edit the page where you want testimonials to appear (typically your homepage, services page, or dedicated testimonials page)
07Add the Blocks Randomizer block by clicking the “+” button and searching for “Blocks Randomizer” or typing /random
08Add your first testimonial inside the randomizer container – you can use Quote blocks, Paragraph blocks, or custom testimonial blocks from your theme
09Format your testimonial with the customer’s quote, name, company, and optionally add their photo using an Image block
10Add more testimonials by clicking the “+” button inside the randomizer and repeating the formatting for each customer review
11Adjust display settings (optional) – in the block sidebar, you can set how many testimonials to show at once if you want to display multiple reviews
12Publish or update your page – visitors will now see a different random testimonial each time they load the page
Pro tip: Use consistent formatting for all testimonials (same heading sizes, image dimensions, text styles) to ensure smooth visual transitions between random selections.
How to Set Up Random Call-to-Actions
Rotating different call-to-action messages helps you test which messaging resonates best with your audience:
13Open the page where you want rotating CTAs (homepage, landing page, or product page)
14Add the Blocks Randomizer block in the section where you want your CTA to appear
15Create your first CTA using Button blocks, Heading + Paragraph combinations, or custom CTA blocks from your theme or page builder
16Duplicate and modify – create variations with different: Headline text (“Start Your Free Trial” vs “Get Started Today”)
17Button colors and styles
18Supporting copy and benefits messaging
19Urgency elements (“Limited Time Offer” vs “No Credit Card Required”)
20Add each variation as a separate block group inside the randomizer
21Set to display one CTA at a time using the “Number of blocks” setting (set to 1)
22Monitor performance over time to see which messages drive more conversions
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.
How to Display Random Products
For e-commerce sites, rotating product showcases give equal visibility to your catalog:
23Navigate to your homepage or shop page in the Block Editor
24Add the Blocks Randomizer block where you want featured products to rotate
25Insert WooCommerce or Easy Digital Downloads product blocks inside the randomizer – you can use: Single Product blocks (for individual product showcases)
26Products by Category blocks (for category spotlights)
28Configure each product block with your desired layout, show/hide settings for price, ratings, “add to cart” button, etc.
29Add multiple product configurations – create different product spotlights, categories, or seasonal collections
30Adjust how many products to display using the randomizer settings
31Publish your page – products will rotate automatically, giving fair exposure to different items
Pro tip: Group related products together or create themed product blocks (e.g., “Summer Collection,” “Best Sellers,” “New Arrivals”) for more cohesive random displays.
How to Rotate Banner Advertisements
If you display ads, partner logos, or promotional banners, the randomizer helps distribute visibility:
32Prepare your banner images – ensure they’re all the same dimensions for a consistent layout
33Add the Blocks Randomizer block to your sidebar, header, or content area where banners should appear
34Insert Image blocks inside the randomizer, uploading each banner or advertisement
35Add links to each image by selecting the image and clicking the link icon – set destinations for each ad
36Include alt text for accessibility and SEO on each image
37Add multiple banners – upload all your advertisement images or promotional graphics
38Set display quantity based on your layout (1 for single banner rotation, multiple for ad grids)
39Publish and monitor – banners will rotate fairly, ensuring all advertisers or promotions get equal exposure
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.
How to Configure Block Display Settings
Fine-tuning how many random blocks appear gives you precise control over your content:
40Select the Blocks Randomizer block by clicking on it in the editor
41Open the Settings sidebar on the right side of the screen (if not visible, click the gear icon in the top-right)
42Find the “Number of blocks” setting in the block settings panel
43Adjust the number using the input field or arrows: Set to 1 for single random block display (great for hero sections, testimonials)
44Set to 2-3 for multiple testimonials or product showcases
45Set to 0 to hide the entire block on the front-end (useful for temporarily disabling without deleting content)
46Preview changes by viewing the page on the front-end or using the editor preview
47Consider your layout – ensure multiple random blocks fit well within your design at different screen sizes
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.
Using with WooCommerce or Easy Digital Downloads
Perfect for e-commerce sites looking to rotate products, promotions, and calls-to-action:
Product blocks – Add Single Product, Products by Category, or Hand-picked Products blocks inside the randomizer
Product rotations – Showcase different products on your homepage or shop sidebar
Promotional banners – Rotate sale announcements and special offers
Category spotlights – Give equal visibility to different product categories
Cross-sells and upsells – Randomize product recommendations on product pages
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
See it in action
Screenshots & previews.
Adding the Random Content Block to your page using the WordPress block editorBlock settings panel showing options to control how many random blocks display at onceFront-end display of randomly selected blocks with custom styling.
02 / Source details
Gettingstarted.
This section describes how to install the plugin and get it working.
Install through your backend :
01Install the plugin via Plugins -> New plugin. Search for “blocks randomizer”.
02Click the “Install Now” button, and then – “Activate”.
Install manually :
03Download and unzip the plugin.
04Upload the blocks-randomizer directory to the /wp-content/plugins/ directory.
05Activate the plugin through the “Plugins” menu in WordPress.
Next :
Now you can use the plugin inside the Block Editor.
03 / Source details
Frequently asked questions.
How do I add the Blocks Randomizer to my page?
In the Block Editor, type the slash /random and select the “Blocks Randomizer” block. Then use the “+” button inside of it to add any blocks you want to be randomized on each page load.
Can I randomize any type of block?
Yes, any block that you see in your Block Editor can be used inside our Blocks Randomizer.
How many blocks can I add to the randomizer?
There are no limits on the number of inner blocks inside our Blocks or Content Randomizer plugin.
Will this slow down my website?
No, the logic to pick a block is blazing fast and will not affect the page speed where the block is randomly selected and displayed.
Does the block output anything on the front-end?
Only the randomly selected child (or inner) block inside the Block Randomizer container will be displayed on the front-end. There will be no extra div wrapper, no extra classes or ids.
Why have you created the plugin?
I wanted to diversify content on my login page and display randomly some useful tips and pieces of content for my users.
Does this work with custom blocks?
Absolutely! The Blocks Randomizer works with any block type – including custom blocks created by third-party plugins, theme-specific blocks, and blocks you’ve built yourself. As long as the block appears in your WordPress Block Editor, you can add it to the randomizer container and it will be included in the random rotation.
Can I display multiple random blocks at once?
Yes, you can configure how many random blocks to display simultaneously using the “Number of blocks” setting in the block’s sidebar panel. For example, if you have 10 testimonial blocks inside the randomizer, you can choose to display 3 random testimonials at once. Each page load will select a different random combination from your collection.
Does the randomization work with caching plugins?
The Blocks Randomizer performs server-side randomization during page generation, which means it works seamlessly with most caching plugins. Each time your cache expires and the page regenerates, a new random selection will be cached. For sites with aggressive caching (where pages are cached for extended periods), you may see the same blocks until the cache refreshes. For truly dynamic randomization on every single page view, you may need to configure cache exclusions for specific pages.
Can I use this for A/B testing different messages?
Yes! The Blocks Randomizer is perfect for simple A/B testing scenarios. Create different versions of your content (headlines, call-to-action buttons, promotional messages) as separate blocks within the randomizer, and the plugin will rotate through them automatically. While this doesn’t provide analytics tracking like dedicated A/B testing tools, it’s an excellent way to give equal exposure to different messaging variations and see which resonates better with your audience over time.
Does this work with WooCommerce product blocks?
Yes, the Blocks Randomizer is fully compatible with WooCommerce product blocks. You can create a collection of product blocks, featured product showcases, or promotional banners and rotate them randomly on your shop pages, homepage, or anywhere else on your site. This is great for giving equal visibility to different products or testing various product presentation styles.
Will random blocks affect my SEO?
Search engine crawlers will see whatever content is randomly selected when they visit your page. Since the randomization happens server-side, the content is fully rendered in the HTML and is indexable by search engines. However, keep in mind that different crawl sessions may see different content blocks. For critical SEO content that must be consistently visible, we recommend not placing it inside the randomizer. Use the randomizer for supplementary content like testimonials, CTAs, or promotional elements.
Can I use shortcodes with the Blocks Randomizer?
The Blocks Randomizer is a native WordPress block designed for the Block Editor (Gutenberg). It doesn’t provide a shortcode interface for use in classic editor widgets or sidebars. However, you can use the randomizer in any block-enabled area, including widget areas that support blocks, Full Site Editing templates, and reusable block patterns. For classic widget areas, consider enabling block-based widgets in your theme settings. You can also use the “Shortcode” block inside the “Block Randomizer” block.
Website LLMs.txt and LLMs-Full.txt Generator is an LLMs.txt generator and llms-full.txt generator for WordPress. It helps site owners generate, manage, preview, validate, and serve AI discovery files from published public content. Use it to create structured /llms.txt and optional /llms-full.txt end
EngageDock AI is a customizable floating contact widget for WordPress websites that want more leads and faster visitor communication. It helps small businesses turn website traffic into calls, texts, emails, and callback requests from one clean contact panel. Key Features: Click-to-Call – One tap ca
Altify AI is an auto ALT text and AI ALT text plugin for WordPress images. It helps generate descriptive image ALT text for accessibility and image SEO. Use bulk image ALT text tools for your Media Library, generate featured image ALT text automatically, and scale WooCommerce image ALT updates with
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati