- Proyectos /
- Foro /
- WP Carousel /
- Multiple Carousel
Tagged: english Multiple carousel.
This topic contains 10 replies, has 2 voices, and was last updated by Sumolari 1 year, 4 months ago.
Multiple Carousel 14/1/2012 at 19:04 #8579
Currently, i am adding the carousel into the header’s page so that it appears in all pages. however, now i want to have specific pages with a different carousel, how do i achieve this?
thanks in advance
Reply To: Multiple Carousel 15/1/2012 at 9:10 #8604
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.
-
This reply was modified 1 year, 4 months ago by
Sumolari.
Reply To: Multiple Carousel 16/1/2012 at 12:03 #8646
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 18:27 #8653
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 17/1/2012 at 4:59 #8671
Okay, how about something like the following, is it possible?
Reply To: Multiple Carousel 17/1/2012 at 5:02 #8674
anyways something like
default-carousel = wp_carousel(1)
if page.id(100) then show carousel (5)
else if page.id(200) then etcetc
Reply To: Multiple Carousel 17/1/2012 at 7:07 #8677
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
.-
This reply was modified 1 year, 4 months ago by
Sumolari.
Reply To: Multiple Carousel 17/1/2012 at 14:41 #8683
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
This topic has been closed to new replies.