Title: Multiple sliders on multiple pages
Last modified: August 21, 2016

---

# Multiple sliders on multiple pages

 *  Resolved [summersnowflake](https://wordpress.org/support/users/summersnowflake/)
 * (@summersnowflake)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-sliders-on-multiple-pages/)
 * Hi!
    Your Slider plugin seems very interesting to me. I need to insert one different
   slider on every page. I want to make it very userfriendly, so I don’t want to
   insert the code into the editor of the page. How can I solve this?
 * Regards,
 * [https://wordpress.org/plugins/smart-slider-2/](https://wordpress.org/plugins/smart-slider-2/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-sliders-on-multiple-pages/#post-5023951)
 * Hi!
 * If you would like to show different sliders on different pages, the best you 
   can do is to add the different shortcodes into the different pages.
 * If you don’t want to go that way, other options might be if you create a widget
   position into the template of your pages. Then there are plugins which allows
   you to set different widgets to different pages. You just need to create the 
   Smart Slider widgets and set them to the related page. Here is a plugin which
   could help your on this way: [http://wordpress.org/plugins/per-page-widgets/](http://wordpress.org/plugins/per-page-widgets/)
 *  Thread Starter [summersnowflake](https://wordpress.org/support/users/summersnowflake/)
 * (@summersnowflake)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-sliders-on-multiple-pages/#post-5023988)
 * Hi,
 * could it work also with the custom fields?
    I make a custom field with “smartslider2”
   and insert the number for the specific page in the backend. In the header.php
   I insert these lines for outputting the number of the slideshow and the gallery:
 * <?php echo get_post_meta($post->ID, ‘smartslider2’, true); ?>
    <?php echo do_shortcode(‘[
   smartslider2 slider=”Willkommen”]’); ?>
 * but I have to insert the first echo in the second, and this doesn’t work.
    Any
   idea?
 *  Plugin Author [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-sliders-on-multiple-pages/#post-5024073)
 * Could you try with something like this?
    <?php $sliderid = intval(get_post_meta(
   $post->ID, ‘smartslider2’, true)); if($sliderid > 0){ echo do_shortcode(‘[smartslider2
   slider=”‘.$sliderid.'”]’); } ?>
 *  Thread Starter [summersnowflake](https://wordpress.org/support/users/summersnowflake/)
 * (@summersnowflake)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-sliders-on-multiple-pages/#post-5024074)
 * Great, it works!
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multiple sliders on multiple pages’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/smart-slider-2_a3918b.svg)
 * [Smart Slider 2](https://wordpress.org/plugins/smart-slider-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-2/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-2/reviews/)

## Tags

 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [page](https://wordpress.org/support/topic-tag/page/)

 * 4 replies
 * 2 participants
 * Last reply from: [summersnowflake](https://wordpress.org/support/users/summersnowflake/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-sliders-on-multiple-pages/#post-5024074)
 * Status: resolved