Firstly, thanks for the plugin!! It’s fantastic and just what I was looking for.
I asked this in the WordPress forums also, but thought you may know how to do this…
I am using do_shortcode to include a Flickr Gallery in my theme as per this post, but 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.
And I would like to replace “Tag Name” in the shortcode with the following custom field:
Is there a way to do this?
Thanks in advance.
Try the following php without the additional space I added between the square bracket and the “s” of slickr-flickr. The space is there to stop the short code being translated
$tag= get_post_meta($post->ID, ‘your_gallery_tag’, true);
echo do_shortcode( ‘[ slickr-flickr tag="’.$tag.’" type="gallery"]’);