In brief, I am trying to effectively insert a PHP function into the shortcode and having no luck.
The shortcode:
[res_map address=""]
The function:
<?php the_field('address'); ?>
What I have so far:
<?php echo do_shortcode('[res_map address="' . the_field("address") . '"]'); ?>
Any help on how to properly do this will be highly appreciated.
contenthas to be a string to search forshortcodes, what yourthe_fieldfunction returns ? - The Alpha