Okay
  Public Ticket #402673
Portfolio pagination issue
Closed

Comments

  • Nathan started the conversation

    Hi there,

    I'm having the same portfolio pagination issue as everyone else. Unfortunately your recommended fix does not work for me. I already use a custom slug and I've tried switching it and saving permalinks again. At one point if I tried an entirely different slug it worked, but I prefer to use "books" as my slug. I removed all plugins, switched to the latest parent theme and still no luck. I see a 404 error on page 2.

    However since the filtering only works for the first page, I've switched to the infinite loading instead. Which I prefer to use. The problem here is that I've set it to 20 portfolio items and it shows a see-through button that says "Loading" and then the button says "All items loaded". But it doesn't load anything, it just keeps the current 20 items. Then the button disappears. Unfortunately there are at least 50-60 items so it hasn't loaded any more.

    I've tested this with all plugins disabled, with parent theme only, and different browsers with caching disabled. Any help would be greatly appreciated! I can share a WP login, if needed.

    Thanks!

    Nathan

  •  8,849
    Tahir replied

    Hey,

    See screenshot:

    Please try using Better WP minify instead of autoptimize as thats likely causing an issue.

    Thanks


    ThemeNectar Support Team 

  • Nathan replied

    Oh, thanks Tahir! I didn't even get an email telling me you had responded.

    I've switched to Better WP Minify and we have the same result. The Chrome error is different:


    Failed to load resource: the server responded with a status of 404 (Not Found)

    http://thrilleredge.com/books/page/2/

    As mentioned, if I disable all pluginsm I see the same problem.

    If I disable the CDN and Better WP Minify, I see the same problem.

    If I disable the child theme completely, I get the same problem.

    If I use the latest version of Salient, I get the same problem.

    Not sure why page 2 is 404ing. Something weird is happening with permalinks, perhaps?

  •   Nathan replied privately
  •  1,075
    ThemeNectar replied

    Hey Nathan!

    Would you be able to try and update to the current version to see if that fixes things? Some of the pagination was rewritten in recent releases

  • Nathan replied

    Hi,

    I did try this last week with the latest release of Salient and found the same problem. Nonetheless, I hired a contractor to fix it (as I needed this fixed by the weekend, I was in a hurry!)

    Here is his explanation, if you\'re curious:

    The problem was that the Book items are displayed on a SINGLE page - they are actually pulled from the DB via a custom query inside that SINGLE page. So when WP looks for the 2nd page on thrilleredge.com/books/ - it actually doesn\'t exist, because \"Books\" is a single stand-alone page. Since there is a custom query there, the pagination has to be custom as well. So I implemented the custom pagination and re-pointed the custom query to use my custom pagination (instead of the generic WP one).

  • Nathan replied

    Also I can\'t mark this as closed myself, so feel free to do so. :)