Horje
Gallery Attachment Pagination X images per page - Wordpress Solution
Background I am looking for a simple way to create what I call pagination for a image attachment gallery. My goal is split X images to appear on X pages so that when someone visits a post with 100 pictures, all 100 aren't loading all at once. Instead I would like the visitor to view, say 10 images and then be able to go to another page for the next 10, so on. I'm using the following to gather attachments
<?php echo do_shortcode('[gallery id="'.$post->post_parent.'" size="thumbnail" columns="5"]'); ?>
This code is located in my image.php file which shows a 5 columns (pictures), per row.

Solution - 1

You could try using "Lazy load", adding it to your code or as a plugin


Solution - 2

Please checkout answer given here. https://wordpress.stackexchange.com/questions/89462/how-to-paginate-wordpress-gallery-shortcode


Solution - 3

can you please show me your site ?





Wordpress

Related
Plugin (?) issues after hosting migration. 500 error, cannot get on site or wp-admin. - Wordpress Solution Plugin (?) issues after hosting migration. 500 error, cannot get on site or wp-admin. - Wordpress Solution
How to email the same page's content at regular intervals, automatically? - Wordpress Solution How to email the same page's content at regular intervals, automatically? - Wordpress Solution
Gravity Forms - Populate Checkbox in Form from Multiple Single Line Text Input Answers from User - Wordpress Solution Gravity Forms - Populate Checkbox in Form from Multiple Single Line Text Input Answers from User - Wordpress Solution
Force DIV refresh upon coupon X application / removal - Wordpress Solution Force DIV refresh upon coupon X application / removal - Wordpress Solution
looking for a good way to query posts on a list of specific days. tryi - Wordpress Solution looking for a good way to query posts on a list of specific days. tryi - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10