$5
NextGen Smooth Gallery:Showing a gallery based on 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:
And I've been trying to call it using:
But all it does is show [smooth=id$3]. (3 being the ID)
What am I doing wrong?
Just uploaded the source code to http://pastebin.com/m59df2a28 and you can view it at http://wordpress.geek.nz/logan/test/
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?
Just uploaded the source code to http://pastebin.com/m59df2a28 and you can view it at http://wordpress.geek.nz/logan/test/
Matt Hancock | 02/05/10 at 12:08am |
Answers | Tags
(3) Possible Answers Submitted...
You must be logged in to view answers or answer this question.



