Add Custom Field within Shortcode using do_shortcode
-
I am using do_shortcode to include a Flickr Gallery shortcode in my theme.
I would like to add a custom field within the shortcode so that I can just add the tag name in the custom field and it would be populated in the shortcode.
Here is my current code:
<?php echo do_shortcode( '[slickr-flickr type="slideshow" tag="Tag Name" size="small"]'); ?>
And I would like to replace “Tag Name” in the shortcode with the following custom field:
<?php getCustomField('tag-name'); ?>
Is there a way to do this?
Thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add Custom Field within Shortcode using do_shortcode’ is closed to new replies.