Default Slide as fallback
-
Hi Fabio.
First my thanks for your plugin!
But I got a little question…
I want to integrate a different slider on each of my subsites.
So I choose to use the site-slug as the title of the slider to automatically get the right slide on the given page.In php it looks like this:
global $post;
$alias = $post->post_name;
if ($alias && function_exists(‘crellySlider’)) {
crellySlider($alias);
}But additionally I want a fall back to a default slide if there’s no slide for the actual post/page.
For that I have to test in a way like this
if (!exists_crellySlider($alias)) {
$alias=”default_crellySlider_name”
}Is that possible? Maybe you can help me out?
Thanks for your support,
J?rg
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Default Slide as fallback’ is closed to new replies.