Tagged: pagination, woocommerce
-
AuthorPosts
-
January 8, 2016 at 4:57 am #561807
Hey!
@Indigotin: Could you please open a new thread then post the login details including FTP? We would like to test the fix in your installation.Cheers!
IsmaelJanuary 8, 2016 at 7:15 am #561843Same problem with our site. After updating WordPress 4.1.1. pagination stopped working.
January 9, 2016 at 5:44 am #562305Hi!
Instead of adding a reply here, please open a new thread then post the url to the site plus the login details so that we can inspect it. Make sure that you have the latest version of the theme. Thank you. :)
EDIT: Please modify the config-templatebuilder > avia-shortcodes > productslider.php. Look for this code around line 504:
'offset' => $params['offset'],
.. replace it with:
'offset' => !(int)$params['offset'] ? "" : $params['offset'],
Remove browser cache then reload the page.
Best regards,
IsmaelJanuary 12, 2016 at 7:17 am #563713I ran into this same problem.
I tried the first fix:
Found:
$params['offset'] = 0;
Replaced with:
$params['offset'] = ( $page - 1 ) * $params['items'];
Didn’t work. So I tried 2nd fix:
Found:
'offset' => $params['offset'],
Replaced with:
'offset' => !(int)$params['offset'] ? "" : $params['offset'],
Didn’t work. So I kept 2nd fix but removed the 1st. That worked! But it made a new issue.
Please see http://www.valleyvariety.com/life/products/
There is a “Product Grid” (which i just fixed with your solution. and then a “Portfolio Grid” grid underneath it. When I change pages on either, they both move. So if i turn to page 3 on products, i turn to page 3 on portfolio as well. They do not work independently.
Also, the portfolio only has 3 pages, products has 10, so portfolio just disappears after page 4.
Is there a way to have 2 grid on the same page and have them navigate independently?
This site is live, so a somewhat fast solution would be nice, thank you!
- This reply was modified 8 years, 11 months ago by valleyvariety. Reason: code formating text
January 12, 2016 at 8:45 am #563732Hey!
@valleyvariety: This is actually a WordPress issue rather than a theme specific issue. Pagination of both post types is set to the same url. Please avoid adding two elements with pagination on the same page. https://wordpress.org/support/topic/2-loops-and-different-paginationBest regards,
IsmaelJanuary 12, 2016 at 4:44 pm #563993This may not be a technical issue with the theme code, but it is kinda a flaw in the theme design. (Not at all knocking the theme, it’s a good one!)
If this is a common issue with loops in WordPress, then might i suggest that your theme account for that? Maybe develop grids that don’t have to reload page or share same links. Maybe with a JavaScript? Or develop a pagination system of your own and not use WordPress’s?
Obviously this won’t be a fast development, I’ll have to find a creative solution to this.
I request as this limits flexibility of design. Designing around flaws is not optimal.
January 13, 2016 at 10:11 am #564466 -
AuthorPosts
- The topic ‘Pagination on Blog page does not work – URGENT’ is closed to new replies.