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.

2 Answers 2


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

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

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?:)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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