• Resolved grakz47

    (@grakz47)


    Hi,

    I’m trying to use masterslider with custom fields plugin at single.php, i have multiples photo galleries and i need that each post will display a unique gallery.

    Master Slider Code: <?php masterslider( $id ); ?>
    Custom Fields Code: <?php the_field(‘code’); ?>

    But when i use together i have a blank page

    <?php masterslider( <?php the_field(‘code’); ?> ); ?>

    Can anyone help me, do i have to use functions.php to declare $id for the_field(‘code’); ?

Viewing 1 replies (of 1 total)
  • Plugin Contributor averta support

    (@averta_support)

    Hi,

    Thank you for choosing Master Slider.

    It doesn’t matter how you provide the $id parameter to masterslider() function. You only need the make sure that it’s a integer value and actually refer to a slider ID.

    You can test this by setting the $id value manually to one of the sliders ID values and see if it’s working. If it does, then what you are outputting with the the_field() function is either not a valid integer or not a slider ID.

    If you need any further information, please let me know.

    Best,

Viewing 1 replies (of 1 total)

The topic ‘MasterSlider / Custom Fields’ is closed to new replies.