Custom Fields and Dynamic Data

Step 1: Model the Content
Open Fields Lab before building the template. Create stable field names and choose the correct types for text, images, choices, repeaters, groups, relationships, maps, and private values. Use conditional logic only when it makes the editing form easier to understand.

Step 2: Choose an Approved Source
In the Widget library, search for dynamic. Choose the source that owns the value, such as the current post, taxonomy term, author, site, product, variant, or approved post metadata. Add a sensible fallback so a missing optional value does not break the layout.

Step 3: Place Dynamic Output
Insert the dynamic widget or shortcode into a reusable template, then bind only the property needed for that element. Use the proper output format for text, links, images, lists, currency, dates, or structured content rather than forcing raw HTML into every page.

Step 4: Test More Than One Record
Preview the template with several real records, including one with a missing optional field and one with a longer value. Verify escaping, links, image alternatives, repeaters, mobile wrapping, and private-field rules. A template is not proven by the easiest record alone.
