[Plugin: NextGEN Gallery] smooth gallery, how to use with custom fields? (1 post)

  1. rixxor
    Posted 6 years ago #

    So, im working on a new Theme and i want to integrate the NextGen Smooth Gallery Plugin. That is found here: http://wordpress.org/extend/plugins/nextgen-smooth-gallery/

    My Problem is, i want to use it with a custom field. But that doesnt work for some reason.

    My Code:

    <?php $gallery = get_post_meta($post->ID, 'gallery', true); ?>
    $gal = '[gallery='.$gallery.']';
    $gal = apply_filters('the_content', $gal );
    echo $gal;

    So, when i use the shortcut [gallery=1] now, it works perfectly with the nextgen plugin. but when i use [smooth=1], the smooth gallery shortcut, nothing happens.

    how can i resolve that problem?

    thanks all in advance!


Topic Closed

This topic has been closed to new replies.

About this Topic