NextGen Gallery in Template.
-
I’m looking to put the short code for NextGen Gallery directly into my template and pass the ID of the gallery to it via a custom field.
So far I know how to grab the short code,
<?php echo do_shortcode('[nggallery id=]'); ?>
And grab the custom field,
<?php echo get_post_meta($post->ID, "gid", true);?>
But I can’t seem to make them work together.
Anyone have any ideas on how I can pass the value from gid to the id in the short code?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘NextGen Gallery in Template.’ is closed to new replies.