![]() |
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
This code is located in my image.php file which shows a 5 columns (pictures), per row. Solution - 1You could try using "Lazy load", adding it to your code or as a plugin Solution - 2Please checkout answer given here. https://wordpress.stackexchange.com/questions/89462/how-to-paginate-wordpress-gallery-shortcode Solution - 3can you please show me your site ? |
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 10 |