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://ww.wp.xz.cn/plugins/per-page-widgets/
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?
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.'”]’);
}
?>
Great, it works!
Thank you