Encountered the need for more flexible inline control over dynamic tags so we can handle common patterns in a single text field, without splitting content into many elements or writing custom PHP for every case.
Right now, dynamic tags inside text are pretty rigid:
- Tags like
{acf_*},{meta:*},{cf_*},woo_*just output the raw value; @fallbackonly replaces the tag’s value when it’s empty but it doesn’t help with “label + value” patterns without leaving a dangling label;- Element conditions apply to whole elements;
Typical pattern that’s hard to express inline:
Label: {some_dynamic_tag}
If some_dynamic_tag is empty, you end up with:
Label:
Idea 1: Inline conditional wrapper around any tag (like Pods)
[if {some_dynamic_tag}]
Label: {some_dynamic_tag}
[/if]
Idea 2: With prefix / suffix attributes and fallback (like the Bricks documentation)
{some_dynamic_tag @prefix:'Label: ' @fallback:''}
Thank you in advance!