• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Add Pagination to WordPress Gallery Image Attachments In Genesis

The code in this template enables you to add pagination to images added to create a WordPress gallery as long as they where uploaded to the single post containing the gallery shortcode.

You can also use this template to add pagination to all attachment images uploaded to any specific posts which aren’t displayed in a gallery.

The template displays the image title, description, image and image caption in that order however you can tweak the code to change the order of each element.

The template also enables commenting on each image as seen in the following demo video.

Demo Video

Shows attachment images uploaded to one specific post displaying in a gallery and linked on the single attachment page.

Tested using the Genesis Sample child theme by StudioPress however can be used in any Genesis child theme without the need for modification.

Installation Steps

  1. # Upload the attachment.php file to your child theme folder like this :
  2.  

  3. # Optional : Copy & paste the CSS from the style.css file to the end of your child themes style.css file and clear caching.
  4.  

Download Folder

Pagination WordPress Gallery

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.