To manage promotional campaign updates across many pages, store each promotion once as structured data, usually a custom post type with defined fields, and make every page display it from that single source instead of containing a typed copy. Then a change to the offer, its terms or its dates is made in one place and appears everywhere. Scheduling, expiry, approval and market rules are added around that record, so pages cannot show an offer that has ended or is not allowed in a visitor’s market.
In short: separate the data from the pages. Create a promotion post type with fields for the offer, terms, dates, markets and disclaimers. Display it through blocks, queries or block bindings, not copied text. Do not rely on synced patterns alone, because they repeat one block of text but do not know about dates or markets. Check expiry when the page renders, and purge caches when a promotion changes.
Why does page-by-page updating break down?
Consider an illustration. If a bonus appears on 60 pages and each edit takes 10 minutes, one change costs about 10 hours. Worse, if a few pages are missed, visitors see conflicting offers. For regulated promotions such as betting, trading or gambling affiliate offers, an outdated figure or missing risk statement is a compliance problem as well as a trust problem. The more pages share a fact, the more it should live in one record.
How do you centralise promotions with a custom post type?
Create a post type, for example promotion, and store each campaign as one entry with fields, typically managed with Advanced Custom Fields. Suggested fields:
| Field | Purpose |
|---|---|
| Offer headline and summary | The text shown on pages |
| Partner or brand | A relationship to the reviewed brand’s own post |
| Terms summary and terms URL | Key conditions and the link to the full terms |
| Start and end dates | Drive when the promotion is shown |
| Markets | Taxonomy or field, so offers vary by country |
| Required disclaimers | Rendered by the template, not retyped by editors |
| Tracking link | One place to update affiliate URLs |
| Last verified | The date someone checked the offer is still correct |
Derive status from the dates (active, scheduled, expired) rather than asking editors to flip a switch. Use taxonomies for filtering, such as market or campaign type.
How do you show one promotion on many pages?
| Method | Good for | Limits |
|---|---|---|
| Custom block with a promotion selector | Placing a chosen promotion inside page content, with editor preview | Needs development. ACF blocks are one route, see ACF blocks |
| Block bindings | Binding core blocks such as Paragraph, Heading, Image and Button to post meta | Limited to supported blocks and registered fields, and reads from the post in context |
| Query loop or WP_Query in a template | Lists, comparison tables and landing page sections | Template work, and query cost to manage |
| Template parts | Repeated layouts such as banners | Still need a data source for the content |
| Shortcodes | Quick, simple insertion | Less visual for editors, so use sparingly |
| REST API or feed | Showing promotions on other sites or apps | See API integration in WordPress |
Block bindings, introduced in WordPress 6.5, let core blocks read from sources such as post meta without custom block code. The post meta source requires the meta to be registered with show_in_rest, and keys cannot start with an underscore. Check the supported blocks for your WordPress version before you design around them.
What about synced patterns?
A common claim is that reusable blocks are no help here. The accurate picture is more useful. Since WordPress 6.3, reusable blocks are called synced patterns, and a synced pattern applies one change to every place it is used. That is genuinely helpful for a fixed banner or a standard disclaimer. What they lack is knowledge: they do not read from fields, filter by market or hide themselves after an end date. Use synced patterns for static shared blocks and a data source for anything that changes by date, market or partner.
How do you automate the promotion lifecycle?
- Scheduled start and end: compare the dates when the page is built, as in the query below, so expiry never depends on a background job.
- Cron with care: WP-Cron runs when pages are loaded, so a task can run late on a quiet site. If you use it for scheduled publishing, consider a real server cron.
- Approval: require review before a promotion is published, especially for regulated offers.
- Version history: keep revisions so you can see who changed an offer and when.
- Reminders: alert the owner when a promotion has not been verified for a set period.
A query that returns the IDs of promotions that are active today for one market, cached for five minutes. It assumes date fields stored as Ymd, as ACF’s date picker does by default. For promotions measured in hours, such as a 48-hour flash offer, store a timestamp and compare it instead.
function wlc_active_promotion_ids( $market ) {
$key = 'wlc_promos_' . sanitize_key( $market ) . '_' . wp_date( 'Ymd' );
$ids = get_transient( $key );
if ( false === $ids ) {
$today = (int) wp_date( 'Ymd' );
$query = new WP_Query( array(
'post_type' => 'promotion',
'post_status' => 'publish',
'posts_per_page' => 20,
'no_found_rows' => true,
'fields' => 'ids',
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'start_date',
'value' => $today,
'compare' => '<=',
'type' => 'NUMERIC',
),
array(
'key' => 'end_date',
'value' => $today,
'compare' => '>=',
'type' => 'NUMERIC',
),
),
'tax_query' => array(
array(
'taxonomy' => 'market',
'field' => 'slug',
'terms' => sanitize_key( $market ),
),
),
) );
$ids = $query->posts;
set_transient( $key, $ids, 5 * MINUTE_IN_SECONDS );
}
return $ids;
}
Treat the code as a pattern to adapt, not a drop-in solution.
How do you handle several markets and regulation?
- Give each promotion a market assignment, and exclude it from markets where it is not allowed.
- Store per-market variants, such as different amounts or currencies, as separate fields or related entries.
- Keep translations in your multilingual plugin, such as WPML or Polylang, and decide which fields are translated and which are market rules.
- Render required disclaimers from the data structure so editors cannot forget them.
- Involve compliance in the field design. Rules differ by country, and nothing here is legal advice.
How do you keep it fast?
- Fetch IDs once and avoid running a query inside a loop for each promotion.
- Use page caching, and purge the affected pages when a promotion is saved or expires.
- Cache fragments or query results for short periods, as above.
- Reserve space for banners to avoid layout shift, and lazy-load content below the fold.
- Measure after launch. A poor implementation can hurt Core Web Vitals, see how important Core Web Vitals are for SEO.
What does this look like on an affiliate site?
An illustrative scenario, not a client case. A trading affiliate site has broker reviews, comparison pages and landing pages that all mention each broker’s welcome offer. With one promotion record per offer, the editor changes the amount once, and reviews, tables and landing pages update. A 48-hour flash offer is created with an end timestamp and disappears by itself. A promotion that is not permitted in one market is simply not queried for that market.
Is this overkill for a small site?
For a handful of pages, probably. It pays off when dozens of pages share the same offers, when several people edit them, or when regulation makes errors costly. Standard WordPress tools cover the pieces, but connecting them into one system is development work, see best practices for custom WordPress development and building complex sites with WordPress.
This article covers the technical side of keeping offers consistent. For the planning side of running several campaigns at once, see how to handle multiple promotional campaigns simultaneously.
If your promotions are scattered across pages today, a technical audit can map where each offer appears. We design the post types, blocks and caching through WordPress development and performance work, and growth and care keeps the setup maintained.
FAQ
Do I need custom development for this?
The core tools are standard WordPress, but connecting them into a reliable system usually needs a developer. After setup, content teams can handle daily updates.
How is this different from reusable blocks?
Reusable blocks, now synced patterns, repeat one fixed block everywhere. A data-driven setup reads from a live record, so it can filter by date and market.
Does it slow page loads?
Not when caching and queries are handled well. Poor implementations can hurt Core Web Vitals.
Can editors schedule promotions without a developer?
Yes, if the post type has start and end date fields and the templates check them. The editor only fills in the fields.
How do I handle translations?
Use a multilingual plugin such as WPML or Polylang for translated text, and keep market rules, such as where an offer is allowed, as separate fields.
What happens when a promotion expires?
If pages check dates when they render, it stops showing automatically. Purge page caches so the change is visible without delay.



