• I am developing a site and having an issue with a URL not resolving.

    I have a custom post type for a Boat, then other ones for a New Boat, and New Boat Package. The URL structure I have set up is as follows:

    mydomain.com/boats
    mydomain.com/boats/new-boats
    mydomain.com/boats/new-boats/a-new-boat-1
    mydomain.com/boats/new-boats/a-new-boat-2
    mydomain.com/boats/new-boat-packages
    mydomain.com/boats/new-boat-packages/a-new-boat-package-1
    etc

    All pages except the final pages are archives showing the entries within it. Browsing to a single new boat works as expected and shows the right page, but attempting to browse to a new boat package results in a 404. The URL which I am attempting to go to is the one generated by WordPress.

    I don’t understand why this would be happening. Both post types are configured identically.

    The website is currently in a dev environment so please contact me for more details if needed.

    • This topic was modified 9 years, 5 months ago by alphaluma.
Viewing 1 replies (of 1 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    Those can be Permalink Issues or rewrite issues.

    Please try to re-save the permalinks and also control the Custom Post Type Settings, to make sure you do not have any rewrite rules there.

    Then, also resave All posts that do not work (give 404) once.
    This can as example be done fast with the Bullk Edit Mode in the post Admin List.

    If then the posts still throw 404, try to create a new dummy test Post Type and control the behavior there.

    If that works, delete the old Post Type completely (but NOT it’s posts) and rename the new Dummy Post Type to the exact same Slug as the old, not working Post type had.

    This would then simply bring back all Posts and they should then work.

    Please perform a Backup previous to proceed.

Viewing 1 replies (of 1 total)

The topic ‘Nested Custom Post Types URL not working’ is closed to new replies.