This helper function will render the dynamic data tags inside of a content string (@since 1.5.5).
echo bricks_render_dynamic_data( $content, $post_id, $context );
Parameters:
$content
– a string containing dynamic data tags (required)$post_id
– the post id if needed (default: current post id)$context
– the context where the data is used after rendered: text, link, image, media (default: text)
Return:
The string after replacing the dynamic data tags with their content.
Example:
echo bricks_render_dynamic_data('My Post Title: {post_title}');