[memb_php]
// Ensure ACF function exists//
if (function_exists('get_field')) {
// Get ACF field values for the current post//
$intel_briefing_s3_path = get_field('intel_briefing_s3_path');
// Since direct HTML mixing might not work as expected, generate the URL first//
$s3_link_shortcode = '[memb_s3_link profile="bbo-files" object="' . $intel_briefing_s3_path . '" return="url"]';
// Execute the shortcode to get the URL//
$s3_url = do_shortcode($s3_link_shortcode);
// Now create the anchor tag with the URL//
if (!empty($s3_url)) {
echo 'Download Intel Briefing';
}
}
[/memb_php]