add image gallery in page template.
-
Hi, I have a page called “Front Page” with a page id of 22. I added a single image to it and in the media library it has an id of 30.
in my page template I want to insert this image and can do so with the code
<?php echo wp_get_attachment_image( '30', 'full' ); ?>
My question is, how do I, from within the loop get the ID of the gallery image associated with the post?
Regards, Alex.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘add image gallery in page template.’ is closed to new replies.