• Hello!

    I have a slider plugin in my theme, but would like to be able have different sliders show up on different pages.

    Currently the code that is in my theme is <?php masterslider(3); ?>. This code pulls up my main slider. on the other pages I would like to be able to decided what slider I want showing, which would mean changing the number within the code.

    I thought a good way to do this would be adding a custom field option to each page that would populate the number in the current code. However I don’t think i have the code right since I am not very fluent in php.

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

    I would appreciate any help!

    Thank you!

Viewing 1 replies (of 1 total)
  • I’m sorry but as you appear to be using a non-WPORG theme, you need to seek support from the theme’s developers – paid or otherwise. We only support themes downloaded from www.ads-software.com here.

Viewing 1 replies (of 1 total)
  • The topic ‘add plugin to theme with with custom fields’ is closed to new replies.