Stable tag: 0.12.0
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: zones, post order, post list, posts, order, zonination, content curation, curation, content management
Contributors: batmoo, automattic, wpcomvip, pkevan, matthumphreys, potatomaster, jblz, nickdaugherty, betzster, garyj
Create zones of selected posts in a set order, and display them on your site.
This plugin is designed to help you curate your content. It lets you assign and order stories within zones that you create, edit, and delete, and display those groupings of related stories on your site.
This plugin was originally built by Mohammad Jangda in conjunction with William Davis and the Bangor Daily News.
- Add, edit, and delete zones.
- Add and remove posts (or any custom post type) to or from zones.
- Order posts in any given zone, by drag and drop or with the keyboard (Move up and Move down).
- Limit capabilities on who can add, edit, and delete zones vs add content to zones.
- Locking mechanism, so only one user can edit a zone at a time (to avoid conflicts).
- Idle control, so people can't keep the zone locked.
- Unzip contents and upload to the
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Zones in the admin menu to create and manage your zones, and easily search for and add existing posts.
- Use the plugin's handy API functions to add zones to your theme that retrieve and display your content. Or, for those who are a bit code-averse, go to Appearance-Widgets and add Zone Posts widgets to display your zone posts in your sidebar or footer. The widget will pull the posts from the chosen zone. On a block theme, add the Zone Posts block to a page or template and pick the zone in its settings.
You can work with a zone's posts either as a WP_Query object or as a plain array.
WP_Query
$zone_query = zoninator_get_zone_query( 'homepage' );
if ( $zone_query->have_posts() ) :
while ( $zone_query->have_posts() ) : $zone_query->the_post();
echo '<li>' . esc_html( get_the_title() ) . '</li>';
endwhile;
wp_reset_postdata();
endif;Posts Array
$zone_posts = zoninator_get_posts_in_zone( 'homepage' );
foreach ( $zone_posts as $zone_post ) :
echo '<li>' . esc_html( get_the_title( $zone_post->ID ) ) . '</li>';
endforeach;For the full template-tag reference, see the theme developer guide.
Audience-targeted documentation lives in the GitHub repository:
- Theme developer guide — using zones in your theme.
- Hooks reference — every filter and action the plugin exposes.
- REST API — endpoints under the
zoninator/v1namespace, for headless integrations. - Upgrading — what to check when you update, release by release.
- Contributing — local setup, tests, and PR conventions.
- Security — responsible disclosure.
You can use a filter:
add_filter( 'zoninator_zone_max_lock_period', 'zoninator_disable_locks' );Filter the following and change according to your needs:
- Number of seconds a lock is valid for, default
30:zoninator_zone_lock_period - Max idle time in seconds:
zoninator_zone_max_lock_period
Not by default since version 0.11.0. The GET /wp-json/zoninator/v1/zones endpoint now requires an authenticated user. If your integration relied on anonymous access, you can restore the previous behavior with the zoninator_rest_get_zones_permissions_check filter:
add_filter( 'zoninator_rest_get_zones_permissions_check', '__return_true' );See the REST API documentation for the full endpoint reference.
Yes. Call add_post_type_support( 'your_post_type', 'zoninator_zones' ), or add zoninator_zones to the supports list when you register the post type.
Breaking release. The template tags are renamed from z_ to zoninator_ (z_get_posts_in_zone() is now zoninator_get_posts_in_zone()), and Zoninator() is removed. Update your theme first, or it will stop with a fatal error. Requires WordPress 6.9 and PHP 8.2. See the upgrade guide.
Check the upgrade guide if your code reads Zoninator's properties, uses the REST API or its bundled Mixtape classes, or customizes the Zones screen. The REST API now runs on core, and errors carry codes.
Fixes three security issues, so update soon. If you lower zoninator_manage_zone_cap so authors can curate zones, they can no longer add posts they can't read, such as another author's scheduled post.
The highlights of recent releases are below. Every change, including older releases, is listed in CHANGELOG.md.
Developers: the bundled Mixtape REST library is gone, and Zoninator()'s public properties are deprecated. See the upgrade guide.
- Changed: The Zones screen is rebuilt in the style of the rest of wp-admin. One field adds content, offering the latest posts before you type, and changes save as you make them.
- New: Reorder a zone's posts with Move up and Move down, and use the whole screen by keyboard and screen reader.
- New: Find a post by typing its ID in the Add content field.
- New: The
zoninator_zone_posts_widget_htmlfilter lets themes change how the Zone Posts widget lists its posts. - Fixed:
z_get_next_post_in_zone(),z_get_prev_post_in_zone()andz_get_post_zones()now work. - Fixed: Zone descriptions keep accented letters and backslashes.
- Security: The Add content field only lists posts you can read, and only Zoninator's own permissions decide who can change zones.
- Security: Posts added to or reordered in a zone must be of a zone post type that the user can read.
- Security: Unpublished posts in a zone are shown only on admin screens, and only to users who can manage zones.
- Security: The zone lock notice no longer reveals the locking user's email address.
- Changed: The post search and Add Recent Content list on the Zones screen are faster on sites with many posts.
- Fixed: A fatal error on PHP 8 when the
zoninator_admin_page_get_zones_argsfilter asks for zone IDs or names.
Requires WordPress 6.4 or later.
- Changed: The
GET /wp-json/zoninator/v1/zonesREST endpoint requires a logged-in user. Thezoninator_rest_get_zones_permissions_checkfilter can allow anonymous access again. - Security: The post search on the Zones screen checks the user's permissions and nonce.
- Security: Zone descriptions and the Zones screen are hardened against cross-site scripting.
- Fixed: Small fixes to zone locks, AJAX responses and translations.



