I’m creating a new template based on Twenty Twelve, and I enabled the gallery post format, and with it, created a new “content-gallery.php” file.
The template defaults to using the same format for both archive (index) and single post mode, but my template will have a post thumbnail grids in archive (index) mode, and slider for the single gallery post view.
I was able to create the first half of the template: gallery posts in thumbnail grids (I used ‘postimage’ function), but was not able to find a solution on how to render the (single) gallery post in the new carousel image mode (applicable using Carousel without Jetpack plugin) since twenty twelve theme would simply use the same ‘content-gallery.php’ file to render the gallery post format.
Any help would be appreciated.
- The topic ‘Custom gallery & image attachment template’ is closed to new replies.