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

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


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.