• Resolved olistic

    (@olistic)


    Hi,

    a friend warned me that the number-links in the page I need help with always send the user just to the first page (so the next blog posts are never shown).

    This is a redirection I haven’t set and I have seen that this happens only with this page, while in all the others pages (i.e. https://www.yogajap.com/?s=yoga) the pagination works correctly and the links work as they should.

    What should I do to get the links working properly, showing all blog posts, page after page?

    Thank you in advance!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Two quick observations:

    1) It seems you’re using the Pagination by BestWebSoft plugin for your pagination, and not WordPress’ built-in pagination. Try the native WordPress pagination from your theme to see if the problem gets resolved. If the problem goes away, then kindly post in the plugin’s own support forum, so its authors who know the plugin best can help you resolve this: https://www.ads-software.com/support/plugin/pagination/

    2) I can also see your theme has a special “Articles Page” template for your blog page (theme file: page-template-pagina-articoli.php). I suspect there’s some pagination code in this file that may not be playing nice with the Pagination plugin you’re using. You could temporarily switch your home PAGE template to use your theme’s default page template (or even to a different theme) to see if the problem persists.

    Thread Starter olistic

    (@olistic)

    Thank you for your reply.

    I’ve already tried to ask to the support of the plugin (as the plugin works in all the other pages and posts), but they haven’t been able to find a solution for this issue.

    They tried to suggest to switch template to TwentyTwenty to see if this issues was fixed, but the result was that in the TwentyTwenty theme the issue remained (the pagination was not shown), and then, switching back to the original theme I’ve found that all the formatting of the site was lost (fortunately I was able to recover it thanks to a database backup that I re-imported).

    This is the code of the page you wrote about – https://pastebin.pl/view/f0c0d39f – and this other one is the code of a page where pagination works – https://pastebin.pl/view/43dca442

    I’ve tried to look at the differences… But sadly I’m not able to find a way to fix the issue of the wrong redirection.

    Any idea?

    Thread Starter olistic

    (@olistic)

    The solution, for me, is here -> https://stackoverflow.com/questions/50169711/pagination-not-working-with-query-posts

    (just in case it helps anyone with a similar problem)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strange redirection in pagination’ is closed to new replies.