Pagination Pages Result in 404.
This topic contains 22 replies, has 7 voices, and was last updated by Guust 8 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: 404, 404 error, Pagination
-
AuthorPosts
-
October 21, 2017 at 1:14 am #401853
Ok, think I might have narrowed it down, and maybe you guys could suggest the best way to organize this.
So there’s the “Listing url prefix” on the Permalink tab. That’s set to: hotels
There’s “GD Home page” which was set to: hotels (now it’s set to search)
And then there’s the settings in the GD CPT addon, which has a slug of: hotelsRight now I am not able to save an empty value in the “Listing url prefix”, is that an issue? Or will it just be replaced with the CPT slug?
Now I have the GD Home page set to search, the hotel listing’s url are /hotels/.. instead of /search/hotels/..
With the /search/ missing from the url to the listing, it’s confusing. If you look at the breadcrumbs to /hotels/ and never back to /search/ (the GD Home Page).
It seemed like it was working as expected when all the three values were set to the same slug, but the pagination ended up breaking sometime over the last update.
What’s the best way to set this up where the GD Homepage is a secondary page?
October 22, 2017 at 12:12 am #4019251. “GD > Permalinks > GEODIRECTORY PAGES > GD Home Page” should be set to the WP page you want as the start (first) page of your directory.
https://wpgeodirectory.com/docs/basic-installation/#home2. “GD > Permalinks > LISTING DETAIL PERMALINK SETTINGS > Listing url prefix” is the default name here for your listings, for example places or business or listings etc, but if you use the Custom Post Type addon, the slugs set there will take priority.
https://wpgeodirectory.com/docs/core-permalinks/#url3. If you use the same slug at different places (for example a WP page, a CPT slug, a tag, a category), then WordPress will ever only serve one of the pages.
4. Breadcrumbs link to the homepage and then to the next level page etc.
So /hotels/ will breadcrumb like Home > Hotels5. You have two custom post types called HOTELS, one from GD and another one. Both seem to use the same slug.
Your GD plugins have no option to add licenses, although WP Easy Updates is enabled; that suggests some conflict or error somewhere.
I suggest to delete and/or de-activate whatever is not necessary to see if that improves things.
As Stiofan said too: “the problem seems to be that the CPT hotels is sharing the same slug with something else, its very hard to track down without database access”Thanks
October 22, 2017 at 3:56 am #401944Ok, I got it working.
SELECT * FROM
postsWHERE
post_type= ‘hotels’; Resulted in two drafts from a CPT with the slug ‘hotels’ from the theme’s plugin. I removed the function that was registering the CPT in functions.php.
October 22, 2017 at 6:42 am #401953Good to hear it is working!
October 22, 2017 at 6:26 pm #402005This reply has been marked as private.October 22, 2017 at 11:33 pm #402013You have a lot of code in your functions.php that is causing all this. There is no need to use any code there to make GD work correctly.
Delete the bit that rewrites /location/ to /hotelsThanks
October 24, 2017 at 12:45 am #402230Thanks. Yes, that coded isn’t needed anymore, the breadcrumbs and titles on the location pages are now working. I’ve just completely disabled the Foreverwedding plugin and it fixed all the issues.
October 24, 2017 at 4:22 am #402243Good to hear, and thanks for letting us know.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket