Beschrijving
Blocks creates reusable content blocks, global content shortcodes, and site variables for WordPress. Create content once, insert it with a shortcode in pages, posts, widgets, or page builders, and update every placement by editing the source block.
Use site variables for values such as a phone number, support email, address, price, site title, or current year. Update the variable once as a token like {{blocks:phone}} and every enabled placement displays the new value. Blocks also supports import and export for moving reusable content and variables between sites as a single JSON file.
Blocks is focused on reusable site-wide content, not on providing another decorative Gutenberg block collection. Because a block renders through a plain shortcode, the same content follows you across theme changes and builder migrations.
Full documentation, examples, and release notes live in the Blocks guide.
Reusable Content Blocks and Global Shortcodes
- Create reusable content once — manage a source block and display it in multiple locations.
- Insert content with a shortcode — use a shortcode such as
[block id="42"]in posts, pages, widgets, templates, and builders. - Update every placement — edit the source block instead of changing repeated content one page at a time.
- Define site variables — reuse values such as phone numbers, email addresses, prices, and the current year.
- Built-in tokens for your site info —
{{blocks:phone}},{{blocks:email}},{{blocks:address}},{{blocks:year}},{{blocks:site_title}}, and more; theblocks:prefix means tokens never collide with other plugins. - Resolve variables everywhere (optional) — tokens also work typed directly into regular content, widgets, and page-builder text.
- Work across editors and builders — ships integrations for Gutenberg, Elementor, Divi, Bricks, Beaver Builder, WPBakery, Oxygen, Breakdance, Zion, Thrive, and Fusion (Avada).
- Import and export — move blocks and variables between sites using a single JSON file.
- Organize reusable content — use categories and tags for larger content libraries.
Blokken
Deze plugin voorziet 1 blok.
- Block
Installatie
Minimum Requirements
- WordPress 6.1 or greater
- PHP 8.1 or greater
Automatic installation (recommended)
- Log in to your WordPress dashboard and go to Plugins > Add New.
- Search for “Blocks”.
- Click Install Now, then Activate.
Manual installation
- Download the plugin zip from the Blocks plugin page.
- Go to Plugins > Add New > Upload Plugin, choose the zip, click Install Now, then Activate.
After activation
A new Blocks menu appears in your admin sidebar. Create your first block, copy its shortcode, and paste it anywhere on your site. The getting started guide walks you through it, including the native elements for every page builder.
Updating
Update from the Plugins screen like any other plugin. Your blocks are stored as regular WordPress content, so they are safe across updates. As with any update, we recommend backing up your site first.
FAQ
-
How do I create reusable content in WordPress?
-
Create a source item under the Blocks menu, copy its shortcode (for example
[block id="42"]), and paste it wherever the content should appear. Edit the source item to update every placement that uses it. -
Can I use reusable content blocks in Elementor, Divi, Bricks, or other page builders?
-
Yes. Blocks ships integrations for the block editor (Gutenberg), Elementor, Divi, Bricks, Beaver Builder, WPBakery, Oxygen, Zion, Thrive, Breakdance, and Fusion (Avada). Add the shortcode or the native builder element where the content should appear.
-
What is a global content shortcode?
-
A global content shortcode displays content managed in one source block. The same shortcode can be placed on multiple pages, widgets, templates, or supported builder layouts, and every placement updates when you edit the source.
-
How do WordPress site variables work?
-
Define a value such as a phone number, email address, price, or current year and display it with a token like
{{blocks:phone}}or with[blocks var="name"]. Updating the stored variable changes every supported placement. Built-in tokens cover your site info, and an optional “resolve variables everywhere” setting makes tokens work typed directly into regular content, widgets, and any page builder. -
Can I move reusable blocks and site variables to another WordPress site?
-
Yes. The Import / Export page downloads all your blocks and variables as one JSON file and imports the same file on any other site running Blocks. Existing blocks are matched by title and are not overwritten unless you choose to.
-
Can I organize my blocks?
-
Yes. Blocks supports categories and tags, so large libraries stay manageable.
-
Where can I get help?
-
Start with the Blocks documentation, or ask in the support forum and we’ll help you out.
-
Leave a Review
-
If Blocks is useful to you, please leave a review on WordPress.org.
Beoordelingen
Bijdragers & ontwikkelaars
“Blocks – Reusable Content, Shortcodes & Site Variables” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Blocks – Reusable Content, Shortcodes & Site Variables” naar jouw taal.
Interesse in de ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
