WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by s_ha_dum Oct 15 '14 at 22:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the 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
up vote 1 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"]

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"]

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


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 '13 at 15:21

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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