Reply To: Multiple Carousel 15/1/2012 at 9:10
I think it is explained in the Help tab, as well as there is an icon in the posts and pages editor.
There is a shortcode ([ wp_carousel]ID[/wp_carousel]). Just place that shortcode in a post or a page and replace ID with the ID of the carousel you want to show and WP Carousel will show it. That’s all.
Reply To: Multiple Carousel 16/1/2012 at 12:03
Hiya, but the thing is that, the carousel is embedded into the header.php instead of post or page. perhaps some code that recognises the page id and displays the correct carousel into the header.
(header.php)
track.pageid= if page id = 100
then display carousel.id=(5)
elseif page id = 200
then display carousel id.(6)
something like this? because im not embedding the carousel into posts or pages.
ps. i think you might wanna add captcha, this bots all over the place
Reply To: Multiple Carousel 16/1/2012 at 12:50
What about:
<?php
if (is_page(100))
{
wp_carousel(5);
}
elseif (is_page(200))
{
wp_carousel(6);
}
?>
PS: Yes, It seems that Akismet is not so effective here…
Reply To: Multiple Carousel 16/1/2012 at 18:27
isn’t there a way to add that function in the settings, so that you can tick which carousel ID should be displayed in the page.
You can have a default carousel which goes into the header or index.This one is displayed in all pages, unless a user specifies that a particular page should have a different carousel ID.
That would be awesome because, currently you can only specify a carousel ID in page and in post but you cannot specify from the header which carousel should be displayed in different pages
Reply To: Multiple Carousel 16/1/2012 at 20:34
An interface that allows such kind of possibilities would be much more complex to use than putting directly the code in your theme.
Reply To: Multiple Carousel 17/1/2012 at 7:07
I won’t add that feature.
Why do you want pseudocode when you can use directly PHP? Seriously, it is not difficult.
I think that managing the content in the carousel could be difficult and annoying, so I created WP Carousel, but I don’t find a good reason to add this.
As I’ve said it has 2 disadvantages:
- The interface will be complex. For instance, think in iTunes Smart List interface. It just allow to use a general and or a general or logic operations. I mean that with it you can show a carousel in any URL that matches all the conditions or in any URL that matches at least one condition. If you think about expanding it, you’ll need an interface to choose when this condition is mandatory or not, and a way to add parenthesis to create sets of conditions (for instance, when is page 9, show, but when is page 7 and the user is logged in, show also – the code is: if(is_page(9) || (is_page(7) && is_user_logged_in())) ).In fact it is more complex to explain with words or using an interface that it is viewing the code.
- It is impossible to allow any possibility with this interface (with code you can, obviously). There are a lot of possibilities, and much more that I don’t think about. You want the possibility of selecting: “in page N, carousel P, on page V, carousel W”, but other user may ask this for categories, other for posts, other for tags, etc.
And about pseodocode, it will require a parser, which will need time, so the page will load slowly. In addition users that don’t know how pseodocode works will have errors and will break their site. When they ask for assistant just me will be able to answer because it will be “my” pseudocode, not a standard code like PHP.
Sorry but I think it is much more complex a visual solution than a coding one. And it is more complex a non-PHP solution than a PHP one. You don’t need to be an expert to use if-else, or even switch. And the conditions you can put are available in the WordPress Codex.
PS: About the code, you can use Pastebin or shortcode
.Reply To: Multiple Carousel 17/1/2012 at 14:41
i dont want to use speudo code, i was merely trying to express if i could have a default carousel and then perhaps use conditionals to set different carousel for different pages within the header.
I am not expert in php or scripting. so is there a way to set a default carousel ?and then use those conditionals that you wrote above
Reply To: Multiple Carousel 17/1/2012 at 15:47
No, you can’t.
But you can use:
<?php
if (condition1)
{
wp_carousel(ID1);
}
elseif (condition2)
{
wp_carousel(ID2);
}
…
else
{
wp_carousel(DEFAULT_ID);
}
?>
This topic has been closed to new replies.