Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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.

    #562307

    Hi 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,
    Ismael

    #562409

    Sorry 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

    #562610

    Hey!

    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!
    Ismael

    #562708

    Yes please deactivate plugins if you need to.

    Thanks

    #563790

    Hi 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

    #564560

    Hey!

    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!
    Ismael

    #565463

    Ismael,

    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.

    #565559

    I’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.

    #566889

    Hi!

    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,
    Ismael

    #567054

    Ismael,

    Thanks for the update and link. And thanks again for all your efforts. Hopefully WP will have this fixed in the next update.

    Cheers

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Pagination on Portfolio Items page does not work’ is closed to new replies.