-
AuthorPosts
-
January 8, 2016 at 10:28 am #561871
New thread opened from original post here https://kriesi.at/support/topic/pagination-on-blog-page-does-not-work-urgent/page/2/#post-561807 as requested by Ismael.
Pages don’t seem to be working using Product Grid with Portfolio Items. When I click on page 2, it stays on page 1.
I’ve updated to Enfold 3.4.7 and I tried editing the config-templatebuilder/avia-shortcodes/productslider.php file by replacing
$params[‘offset’] = 0;
with
$params[‘offset’] = ( $page – 1 ) * $params[‘items’];
But none of these seem to make any difference.
January 9, 2016 at 5:58 am #562307Hi indigotin!
Thank you for using Enfold.
I’m sorry but I think you forgot the FTP username? We will need that in order to debug the issue. For the meantime, please try to replace the code above with this:
$params['offset'] = !(int)$params['offset'] ? "" : ( $page - 1 ) * $params['items'];
.. then 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 9, 2016 at 11:59 am #562409Sorry Ismael, here is the FTP username.
I made these new folders under my child theme:
config-templatebuilder/avia-shortcodes
and put a copy of productslider.php in the avia-shortcodes folder.
I modified it as you suggested but it doesn’t seem to work.
Can you take a look?
Thanks
January 10, 2016 at 6:04 am #562610Hey!
Thank you for the info. I tested the same modification on my child theme and it worked. I’m not sure why it doesn’t work on your installation. Is it OK if we deactivate the plugins while testing the site?
Cheers!
IsmaelJanuary 10, 2016 at 1:34 pm #562708Yes please deactivate plugins if you need to.
Thanks
January 12, 2016 at 10:42 am #563790Hi Ismael,
Is there any further progress with this problem? I saw the post from @valleyvariety (https://kriesi.at/support/topic/pagination-on-blog-page-does-not-work-urgent/page/2/#post-563713) but that doesn’t seem to make any difference.
I have noticed that pagination seems to work fine for product-category (http://www.indigomolecularimages.com/product-category/drugs/)
but not for portfolio-item (http://www.indigomolecularimages.com/portfolio-item/drugs/)Thanks
January 13, 2016 at 11:58 am #564560Hey!
Sorry for the delay. The pagination is working when I switched to the default permalink. Please let me do some further testing. I will update you once I’m done.
EDIT: I’m sorry but I was not able to fix the issue on your installation. It’s probably a difference in the server configuration because the pagination of the product grid element is working on our installation. What is the PHP version of the server? Please ask your hosting provider to update it to 5.4 or later.
Cheers!
IsmaelJanuary 14, 2016 at 3:58 pm #565463Ismael,
Thanks for trying. I don’t think it’s a PHP issue as I was already using 5.4. I tried 5.6 too but that made no difference.
It seems a bit odd that pagination works with default permalinks for Portfolio items, but no other permalink format. Yet pagination for product-category seems to be fine.
I guess my only option is not to use a portfolio grid but use a gallery instead and then use the WP Gallery Custom Links plugin to allow me add links to the images.
Thanks again for all your efforts.
January 14, 2016 at 5:09 pm #565559I’ve found a work around for now that still lets me use Portfolio items.
Basically I put a custom link in the additional portfolio settings. This link now takes the user to the product-category page where pagination works.
January 18, 2016 at 4:42 am #566889Hi!
We are very sorry for this inconvenience. We found a few hot fixes which we implemented on your installation but it didn’t fix the issue. Those same hot fixes worked on other installations. This is actually actually a WP issue so in case you’re wondering where we get the hotfix, please visit this thread: https://core.trac.wordpress.org/ticket/35344#comment:34
Best regards,
IsmaelJanuary 18, 2016 at 10:52 am #567054Ismael,
Thanks for the update and link. And thanks again for all your efforts. Hopefully WP will have this fixed in the next update.
Cheers
-
AuthorPosts
- The topic ‘Pagination on Portfolio Items page does not work’ is closed to new replies.