Support » Plugins » [Plugin: NextGen Smooth Gallery] Showing a gallery based on a custom field ID

  • I have a custom field in my code called ‘gallery’ which holds the album ID from NextGen Gallery.

    What I would like to do is parse that through to NextGen Smooth Gallery so it’ll display the gallery alongside the post.

    I have the following at the top:
    <?php $gallery = get_post_meta($post->ID, 'gallery', true); ?>

    And I’ve been trying to call it using:
    <?php echo do_shortcode("[smooth=id:$gallery;]"); ?>

    But all it does is show [smooth=id$3]. (3 being the ID)

    What am I doing wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGen Smooth Gallery] Showing a gallery based on a custom field ID’ is closed to new replies.