Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to use the Jetpack Carousel for all my posts without editing all of them. Is there a way to show pictures in the carousel even if they're not in a gallery?

share|improve this question
Let me know, if this is more a Stackoverflow related question. – Sn0opy Jul 30 '12 at 10:25
No, it isn't. Just see the answer. – kaiser Aug 2 '12 at 0:30

2 Answers

up vote 2 down vote accepted

Adding another better solution: This displays only the first image in a gallery, linked to launch the carousel. You would make that first image, and it's caption, clearly indicate it as a link to a gallery.

Give gallery an HTML ID:

<div style="display:none">
[gallery include="111,222,333"]
</div>

Then add CSS:

#gallery-link .tiled-gallery-item { display: none; }
#gallery-link .tiled-gallery-item:first-child { display: block; }

Note: .tiled-gallery-item is the class inserted by Jetpack when Settings> Media> Image Gallery Carousel is set to Tiled Galleries.


Here's old original answer, which has some value, and works fine when launching a gallery on another post, but not on same post:

This is tested, but NOT rigorously; seems to work: write the shortcode with the images you want (attachment IDs); put it in post, but don't display it:

<div style="display:none">
[gallery include="111,222,333"]
</div>

Then you can trigger the Carousel w/ a href URL that looks like:

http://examples.com/your-post#jp-carousel-111

where "111" is the ID of the first image attachment ID you want Carousel to start with.

share|improve this answer

Is there a way to show pictures in the carousel even if they're not in a gallery

Afaik, this isn't possible. JetPack doesn't collect all your <img> tags in a post. It converts the default [gallery] shortcode.

share|improve this answer

protected by Community Jan 18 at 15:21

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.