WordPress.org

Ready to get started?Download WordPress

Forums

HG Slider
[resolved] Dynamic choice of the gallery name (2 posts)

  1. mojo74
    Member
    Posted 1 year ago #

    Hello,

    First of all, thks a lot for your work, that plugin is great.

    I would like to use custom field in order to let my client choose which gallery he wants to display on a page...but i can't find the way to make it work cause i'm not a php expert :(

    First, i grab the name of the gallery :
    <?php $test = get_post_meta($post->ID, "slider", true) ?>

    Then, i try to include it in the Flexslider code :
    <?php if(function_exists('show_flexslider_rotator')) echo show_flexslider_rotator('echo $test');?>

    What am i doing wrong ? Is there a solution to resolve my problem ?

    Thks !

    http://wordpress.org/extend/plugins/flexslider-hg/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 1 year ago #

    Take out the echo:

    <?php if(function_exists('show_flexslider_rotator')) echo show_flexslider_rotator($test);?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic