How to Change the Term Separator in Bricks Builder

How to Change the Term Separator in Bricks Builder

Bricks Builder uses dynamic tags like Uncategorized to display taxonomy terms such as categories or tags. By default, multiple terms are separated by a comma and a space, for example:

Design, Innovation, Strategy

If you want to use a different separator — such as a pipe (|), dot (·), or simple space — there are two options.

Option 1: Change the separator globally via filter

The following code can be added to your functions.php file to override the default separator:

add_filter( 'bricks/dynamic_data/post_terms_separator', fn() => ' · ', 10 );

This replaces the comma with a middle dot, so the result becomes:

Design · Innovation · Strategy

This method applies globally and affects all dynamic tags using {post_terms_taxonomy} — as long as they are used without surrounding text.

Important: The filter only applies if the tag is used on its own. For example, this will work:

Uncategorized

…but this will not:

Categories: Uncategorized

In such cases, Bricks treats the output as plain text and ignores the filter.

Option 2: Use a custom separator inline

Bricks also supports inline separators directly in the dynamic tag. You can write:

{post_terms_category separator=" | "}

This overrides the default and outputs:

Design | Innovation | Strategy

This approach is useful if you want to vary the separator in different locations without modifying global behavior.

Summary

Use a filter if you want a consistent separator across the entire site, or define it inline for case-by-case control. Avoid wrapping dynamic tags in surrounding text if you want filters to apply correctly.

Hinterlassen Sie den ersten Kommentar