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
}
}