Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

suppose you are viewing a single image from the gallery. You have both previous and next links there (for navigation). but is there a way to also show all the other images from the same gallery in the same page (for example i want to show other images from same gallery)

if there is a way then can anyone please provide me the simplest code please.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

At it's very simplest, add this to your theme's attachment.php

<?php do_shortcode('[gallery id="' . $post->post_parent . '"]'); ?>
share|improve this answer

TheDeadMedic answer is real one.in Suppose you like to get from plugin means follow the below Link.It'll Helpful for you.This Plugin is very Famous Gallery.You are Clear with my solution?:)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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