NO BUG: {echo} dynamic tag not working

Browser: Chrome 127.0.6533.100
OS: Windows
URL: Link to a page that illustrates this issue
Video: Portfolio-Item (Template) - Google Chrome - 13 August 2024 | Loom

Dynamic Echo Tag isn’t working.

I echoed it with Custom Code, and it worked (as shown in the video).

This is the function:

function get_second_imgal_value() {
    // Retrieve the value from the Pods field
    $images_string = pods_field_display('imgal');

    // Split the string into an array using space as the delimiter
    $images_array = explode(' ', $images_string);

    // Check if the array has at least two values and return the second one
    if (isset($images_array[1])) {
        return trim($images_array[1]);
    } else {
        return 'Nothing found'; // Return an empty string if the second value is not found
    }
}

Hey @tobi,

Starting at Bricks 1.9.7, you must explicitly allow any function names you want to call via Bricks’ dynamic data echo tag using the new bricks/code/echo_function_names filter. You can add this to your Bricks child theme or the code snippet plugin of your choice.

Best,

André

1 Like

Big thanks @aslotta !

Everything’s working now.