Pagination Pages Result in 404.

This topic contains 22 replies, has 7 voices, and was last updated by  Guust 7 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #401853

    Lauren Randolph
    Expired Member
    Post count: 40

    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: hotels

    Right 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?

    #401925

    Guust
    Moderator
    Post count: 29970

    1. “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/#home

    2. “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/#url

    3. 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 > Hotels

    5. 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

    #401944

    Lauren Randolph
    Expired Member
    Post count: 40

    Ok, I got it working.

    SELECT * FROM

    posts

    WHERE

    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.

    #401953

    Guust
    Moderator
    Post count: 29970

    Good to hear it is working!

    #402005

    Lauren Randolph
    Expired Member
    Post count: 40
    This reply has been marked as private.
    #402013

    Guust
    Moderator
    Post count: 29970

    You 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 /hotels

    Thanks

    #402230

    Lauren Randolph
    Expired Member
    Post count: 40

    Thanks. 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.

    #402243

    Guust
    Moderator
    Post count: 29970

    Good to hear, and thanks for letting us know.

Viewing 8 posts - 16 through 23 (of 23 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount