-
AuthorPosts
-
September 27th, 2021 at 11:31 #121978
Hi.
If you navigate to the URL of a post-category everything is fine. (https://yoursite.com/yourcategory/)
But if you try to navigate to page 2 at the bottom of the page (https://yoursite.com/yourcategory/page/2/), you get the “Page not Found” error.
Website: redzoneracing.no
October 5th, 2021 at 23:00 #122287ZedCryout Creations mastermindHi,
URLs are handled by WordPress, not the theme. Double-check your permalink settings (and re-save settings to ensure the rules currently applying are in sync with what WordPress is expecting).
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.October 6th, 2021 at 12:54 #122310Hi Zed.
I have re-saved the permalink settings, but it still did not work.
I have also tried to apply the default WP theme “Twenty Twenty One”, where it works just as it should.
Switching back to the Mantra theme, it stops working again.
March 7th, 2022 at 12:05 #127195This is still not solved.
April 13th, 2022 at 11:30 #128523Can anyone fix this issue?
April 27th, 2022 at 23:49 #129007ZedCryout Creations mastermindAs I said previously, the theme does not control or handle URLs, so I don’t see how it could interfere with them (while the site works fine with a Twenty theme).
On our own theme demo the pagination URL works fine with Mantra: https://demos.cryoutcreations.eu/wordpress/mantra/blog/page/2
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.May 3rd, 2022 at 13:50 #129143Well now I see why you don’t agree. You are testing the blog part, and not the category part (which this thread is about).
https://yoursite.com/blog/page/2/ – is working fine, for our site as well.
https://yoursite.com/yourcategory/page/2/ – is not working, and I expect not for your demo eitherWhen I try https://demos.cryoutcreations.eu/wordpress/mantra/cat/post-types/page/2/ I get the same error as I get on our site.
But you will have to add a few more posts to the category, because as of now – you could argue that the demo site does not contain enough posts in the category to even make it to a 2nd page.
May 4th, 2022 at 13:50 #129144Well now I get why you don’t agree. You are testing pagination on the blog part and not the category part, which this thread is about.
https://yoursite.com/blog/page/2/ – is working fine, for our site as well
https://yoursite.com/yourcategory/page/2/ – is not working, and I assume it is the same for your demo as wellVisiting https://demos.cryoutcreations.eu/wordpress/mantra/cat/post-types/page/2/ gives the same error as we see on our site.
But please, add a few more posts to your category on the demo page, so the argument of too few posts in the category can be dismissed as well. Our site can fill 18 pages on just one category…
May 6th, 2022 at 15:04 #129250Well now I get why you don’t agree. You are testing pagination on the blog part and not the category part, which this thread is about.
URL (https://yoursite.com/blog/page/2/) – is working fine, for our site as well
URL (https://yoursite.com/yourcategory/page/2/) – is not working, and I assume it is the same for your demo as wellVisiting (https://demos.cryoutcreations.eu/wordpress/mantra/cat/post-types/page/2/) gives the same error as we see on our site.
But please, add a few more posts to your category on the demo page, so the argument of too few posts in the category can be dismissed as well. Our site can fill 18 pages on just one category…
May 10th, 2022 at 14:01 #129367Well now I get why you don’t agree. You are testing pagination on the blog part, not the category part which this thread is about.
URL ./blog/page/2/ – is working fine, for our site as well
URL ./yourcategory/page/2/ – is not working, and I assume it is the same for your demo as wellVisiting the demo and trying ./mantra/cat/post-types/page/2/ gives the same error as we see on our site.
But please, add a few more posts to your category on the demo page, so the argument of too few posts in the category can be dismissed as well. Our site can fill 18 pages on just one category…
- This reply was modified 2 years ago by l1512191.
May 15th, 2022 at 23:57 #129537ZedCryout Creations mastermindI linked to the blog section because our Mantra demo setup does not have enough posts to activate the pagination on category sections. However, I tested this on one of our test sites and links there work as expected.
As I told you before, pagination links are generated using core WordPress functionality and are not controlled by the theme – however, these are generated based on your WordPress permalink settings.
I notice that your example URL:
https://yoursite.com/yourcategory/page/2/
is missing the category base in the permalink – by defaultcategory/
making the correct URL be:
https://yoursite.com/category/yourcategory/page/2/
Unless you’ve set up a complex fine-tuned permalinks configuration, the base for categories/tags cannot be empty.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.June 16th, 2022 at 12:38 #130513And just like that, we have a solution (missing category base). Thanks Zed!
Any idea on why pagination on category sections works fine without the category base on other themes? Ex: Twenty themes
- This reply was modified 2 years ago by l1512191.
June 17th, 2022 at 17:53 #130583ZedCryout Creations mastermindDoes the category pagination work on that exact site with any other theme?
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.June 19th, 2022 at 11:34 #130626Yes, Twenty Twenty One.
June 28th, 2022 at 17:40 #130858ZedCryout Creations mastermindCheck if disabling the numbered pagination option works with your custom links.
TwentyTwentyOne uses wp_link_pages() to generate the pagination links markup, while in Mantra we used get_pagenum_link() when generating the links.
These two core functions might have different behaviour when presented with unexpected permalinks configuration.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.July 11th, 2022 at 09:49 #131160As the problem is solved for me, I’ll end my case here.
The why part was just my curiosity, and I do not have time to dive deeper into the why part.
Thanks Zed!
-
AuthorPosts
The topic ‘Mantra – Category Archive page 2+’ is closed to new replies.