Support » Plugin: Responsive WordPress Slider - HG Slider » Dynamic choice of the gallery name

  • Resolved mojo74



    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 !

Viewing 1 replies (of 1 total)
  • Plugin Author Hal Gatewood


    Take out the echo:

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

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic choice of the gallery name’ is closed to new replies.