How WordPress Handles Dynamic Content

The Berlin location in one workshop record appears on both the detail page and the listing card.

A workshop directory has twenty entries. Each shows a title, a city, a date, and a booking link. If an editor has to update the workshop date in the event page, the homepage card, and a category list separately, the site will eventually disagree with itself.

WordPress can store the details once and display them wherever they belong. The useful distinction is between the record you edit, the rules that pick records, and the template that displays them. This guide shows how to design those pieces around a real editorial workflow.

Decide what the record contains

Imagine that “Intro to Portrait Lighting” is one workshop. Its WordPress record holds the title, description, featured image, date, booking link, and city. Editors update the record. The event page and any listing can display values from the same source.

You can start with ordinary posts or pages if they already fit your workflow. A custom post type makes sense when workshops need their own admin list, archive behavior, or editing workflow. Decide what the editor needs to enter before choosing a plugin. The MDJ WordPress overview explains how content, theme and plugins divide the work.

Workshop informationWhere to keep it
Workshop name and full descriptionCore title and content
Main promotional imageFeatured image
City and topic reused across workshopsTaxonomy terms
Booking URL and event date for one workshopCustom fields
Instructor with their own profileRelated record if the profile needs reuse

Use a field for a value belonging to one entry, such as a booking URL. Use a taxonomy for named groups that multiple entries share and readers may browse or filter, such as workshop topics or cities. WordPress categories and tags are built-in examples. A field can store a city name, but a City taxonomy gives your team managed terms and can support term archives if configured that way.

A WordPress demo shows a content model with a name, image and pricing field.
A conference prototype from 2025 models a menu entry with a name, an image and a price. Still from Content Modeling: Custom Post Types and Custom Fields in the Block Editor by Autumn Fjeld and Candy Tsai · CC BY-SA 4.0

Advanced Custom Fields is one way to give editors typed inputs and register content types through the admin. Its post type guide covers which features to enable. Use core title, content, featured image, or taxonomies when they already represent the data. Start with the few fields the editor actually needs.

Understand what the template receives

Context tells WordPress which record a dynamic block should read. On an individual workshop URL, the workshop is the record being displayed. In a listing, each repeated card needs the current item from the loop. Its title and image should change from card to card even though the layout is shared.

On a single template, WordPress can display core values with blocks such as Post Title, Featured Image, and Content. A heading typed directly into the template is the same literal text on every matching page. Put the workshop name in each entry and use its post title in the template. For theme constraints, see the MDJ guide to choosing a theme.

Single workshop

  • The requested workshop is the record in context.
  • Read its title, image and field values in the template.
  • Test a workshop with an optional field missing.

List of workshops

  • The query selects several records.
  • Each card must use the current loop item.
  • Test two entries with different dates and links.

If you display data from a related record, define the relationship. A workshop may point to an instructor stored as another entry. Decide whether each workshop can reference one instructor or several, and whether the instructor page also needs to list their workshops. Meta Box Relationships is an option when you need a dedicated relationship layer. A plain text instructor name can be enough if you have no separate record to reuse.

Connect a field to something visible

Creating a field is the first step. The template must still know where to show it. In a compatible native setup, the Block Bindings API connects a supported block attribute to a source. With the core post-meta source, register the field for REST access and use a public key that doesn’t begin with an underscore. Check the supported attribute, field type, editor controls, and live output. Creating a field in a plugin doesn’t automatically configure those pieces.

  • Text or heading: display the workshop city or a short label.
  • Button URL: connect the booking link if your chosen block and source support that attribute.
  • Image: select a supported source that matches what the block expects. An attachment ID, a URL, and a structured field value are different shapes.
  • An arbitrary repeated group: use a rendering approach designed to handle collections. A scalar text binding is a poor fit for a multi-row schedule.

If the schedule belongs to one workshop and editors need to add several time slots, an ACF Pro Repeater can store those rows. Plan the corresponding rendering loop as part of the feature. If sessions need individual URLs, relationships, or searchable archives, separate records may be easier to query and reuse.

If your site already uses Kadence blocks and needs a field source supported by those blocks, Kadence Blocks Pro* provides dynamic content tools. Confirm the exact field type, whether the block reads the current entry in a loop, and what it displays when the value is empty. Keep layout settings in the theme or template layer so editors can update data without changing the layout.

Plan for fields that are empty

  • Hide the button when there is no usable destination.
  • Choose a meaningful fallback or omit an optional image.
  • Test a record with each optional field intentionally blank.

Select the records that belong in each list

A query selects records and their order. The card template decides which values to display for each result. “Show six newest published workshops in Berlin” has a content type, a publish state, a City term, a sort order, and a limit. “Show upcoming dates earliest first” is a different requirement because the workshop date may live in a custom field.

Start with core filters for requirements they can express. If the list needs additional relationships or sorting by metadata, verify the query tool supports the field format and the relevant index or storage design. JetEngine Query Builder is worth evaluating when your listing needs more complex conditions and you accept the plugin dependency. Compare the exact query and the template output on staging.

Write down what the list must do

  • Membership: workshops in the selected city.
  • Order: newest published entries or earliest upcoming date.
  • Boundaries: past events, missing dates and the current timezone.

When sorting future dates, choose one storage representation, decide which timezone the date follows, and test one past event, two future events, and one with no date. Decide what happens at the boundary, such as whether today’s workshop stays in the list until it starts. A beautifully styled card cannot make an inconsistent date field sort correctly.

  • Two workshops with the same title and different booking URLs: if a card links to the wrong workshop, inspect the URL source and record context.
  • An archived workshop with a valid booking URL: if it’s still in the list, inspect the query’s status or date criteria.

Publish only the data that belongs on the page

Treat public content and private operations as separate concerns. A public booking URL can belong in a template. Attendee details, internal notes and private access tokens should not be placed in a public field binding or feed. If you register metadata with REST access, review who can read it and what the active post type and endpoint expose. Hiding a label in the layout does not change the underlying access rules.

Choose useful defaults for missing values. If registration is closed, remove or replace the call to action rather than outputting an empty button. If the image is optional, test how the card looks without it. Define those outcomes before entering dozens of records, then verify them logged out. Keep caches and previews in the test when content depends on identity, time or availability.

Check the public view

  • Open the single entry and the listing while logged out.
  • Confirm a private field isn’t part of public output or an exposed response.
  • Check what caches serve when a public value changes.

Build and verify one complete example

  1. Create two workshops. Give them different cities and booking URLs. Leave one optional field empty.
  2. Build the single view. Output the title, description, date and booking destination from the current workshop.
  3. Build a listing. Limit it to the intended type and test a city filter. Verify that each card links to and reads the correct item.
  4. Edit one record. Confirm both its detail page and its card pick up the change. Check that the other workshop stays the same.
  5. Test delivery conditions. View it logged out, use a narrow viewport, and verify the empty field, closed registration and no-results cases.

Document where the data is registered, which plugin or theme renders it, and how to export or restore it. If the site changes theme later, the entries may still exist while the display or registration workflow needs rebuilding. Test that change on a copy. The design is doing its job when the next editor can update one workshop once and trust every intended view to follow.

FAQs

Launch Your WooCommerce Store the Smart Way

Skip weeks of design work and launch a professional WooCommerce store faster.

Explore the Theme

Leave a Reply

Your email address will not be published. Required fields are marked *