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

  1. mojo74
    Posted 3 years ago #


    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 !


  2. Hal Gatewood
    Plugin Author

    Posted 3 years 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

  • Responsive WordPress Slider - HG Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic