- This topic has 15 replies, 5 voices, and was last updated 3 years, 10 months ago by Tom.
-
AuthorPosts
-
May 5, 2020 at 3:17 am #1270178david
Hi guys,
For some reason my Load more button works fine on the main blog page but not on category pages. Looked everywhere and tried all that I can but I can’t find the reason for this anywhere.
Any help would be amazing!May 5, 2020 at 3:41 am #1270197DavidStaffCustomer SupportHi there,
do you have a custom permalink structure like
/%category%/%postname%/
in your Settings > Permalinks ? I know this used to mess up archive pagination on older versions of WP ….. Let me knowMay 11, 2020 at 2:33 am #1278723davidHi, sorry for the delay in getting back to you.
Yes I use that type of permalink structure but I use infinite scroll and the load more button so there is no pagination as such.
Basically on the main blog page it works fine – you hit Load more and it gives another batch underneath on the same page. But on category pages it just tries to load, the button disappears and no more posts are actually loaded.
I’ve tried changing on page settings, settings in GP, wordpress and a few others but I can’t find the issue.
Do you know what else it might be?May 11, 2020 at 6:42 am #1279023DavidStaffCustomer SupportThat permalink structure is a known problem with WordPress and Paged content such as archives.
The simplest fix is to change the structure to just the postnameMay 11, 2020 at 7:06 am #1279056davidHi David,
This is happening on my blog category page e.g. on this page: https://cpdonline.co.uk/knowledge-base/health-and-safety/
I use a custom structure as described but this is for individual posts – would this still impact the category page?
I can’t really change any URL structures to be honest without it impacting SEO – is there a workaround that you know of?
Thanks for the help!May 11, 2020 at 5:05 pm #1279976TomLead DeveloperLead DeveloperHi there,
The way our infinite scroll work is it looks for the next page of posts using your normal WP pagination URL: /page/2
Then it grabs the posts and loads them without reloading the page.
If it’s not working, it means your default pagination is broken.
I did some looking around and found this: https://wordpress.stackexchange.com/questions/172958/custom-permalink-structure-leads-to-be-404-on-pagination
It seems that permalink structure breaks pagination – perhaps one of the solutions there will help?
May 12, 2020 at 1:40 am #1280381davidHi Tom,
Thanks for getting back to me.
I’ve tried all solutions on that page as well as this one: https://meigwilym.com/fixing-the-wordpress-pagination-404-error/ and none have worked for me.
Is there anything else you would recommend?
I don’t really want to alter any URL structures as this would impact on the rankings of pages.May 12, 2020 at 3:28 am #1280488DavidStaffCustomer SupportWhat happens when you disable the infinite scroll ? Does that archive work correctly or do you get the issue that Mei Gwilym provided a fix for?
May 12, 2020 at 11:39 am #1281341marketingeszkozokMay 12, 2020 at 11:49 am #1281353LeoStaffCustomer SupportPlease open a new topic for your question.
Thanks!
May 13, 2020 at 9:29 am #1282840davidHi David
No it still doesn’t work even without the infinite scroll for some reason. The infinite scroll just never loads any more and the load more button loads then disappears without pulling any more posts to show.
I think that the previous solutions don’t work because I have such a customer permalink structure on our blog.
Anything else at all that comes to mind would be much appreciated!May 13, 2020 at 4:41 pm #1283357TomLead DeveloperLead DeveloperHi there,
If you turn off infinite scroll completely (including the load more button), do your normal pagination links work?
May 14, 2020 at 2:36 am #1283734davidHi Tom,
Just tried this and they do on the general blog page but not when you’re in a category for some reason.May 14, 2020 at 7:03 am #1284068DavidStaffCustomer SupportHaving trouble replicating the issue – have you changed the Category Base in the Permalink?
May 14, 2020 at 7:25 am #1284102davidHi David,
No it is still the same on mine.
So on this page for example I get a 404: https://cpdonline.co.uk/knowledge-base/food-hygiene/page/2/ but the first page is fine (https://cpdonline.co.uk/knowledge-base/food-hygiene/).
On the main blog page the pagination works here: https://cpdonline.co.uk/knowledge-base/ it’s just the categories that don’t. -
AuthorPosts
- You must be logged in to reply to this topic.