• Howzit forum – 1st, I’ve tried looking, but it’s likely I dont’ know the correct terms for what I’m trying to do, because I’m not finding any answers.

    I’m working on a travel info site and have created custom post types for hotels and nightlife, which resides at
    example.dev/hotels/
    example.dev/nightlife/

    If I create “Imperial Hotel” it can be found at example.dev/hotels/imperial-hotel/

    This is fine, but as the site grows, I’m want the establishments to be findable by city/town – data I already capture in the custom post type’s meta data.

    So the Imperial Hotel is in capital city, which also has a nightlife – Capital Club (very creative examples, yes).

    So ideally, because I’m under the impression it’s good SEO to do it like this, the URLs should be
    example.dev/capital-city/hotels/imperial-hotel
    example.dev/capital-city/nightlife/capital-club

    With pages this was not a problem. Imperial hotel could be a child of hotels which in turn was a child of capital city.

    But I have no idea how to achieve this with custom post types in the most efficient way.

    Should I rethink my data structure / custom post types or can it be done in some other way?

    I also struggle with deciding and determining which structure would be best. Should it be

    State
    — Capital City
    —- Hotel
    —- Nightlife
    — Beautiful City
    —- Hotel
    —- Nightlife

    or should it be

    State
    — Hotel
    —- Capital City
    —- Beautiful City
    — Nightlife
    —- Capital City
    —- Beautiful City

    Any help is greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • wp_seo_02

    (@wordpress_seo_02)

    Keep in mind that at their base – pages and posts can both be structured with your preferences. The difference is that posts, deeper linked like you want, won’t necessarily show up in your post editor (when keywords assigned) or in the browser when you view the posts.

    However, SEARCH BOTS will read the deeper structure and index accordingly. To check your post structures, go to the category button (dashboard) and you will see how the post structures (likes pages) are set up.

    Thread Starter EastOfWest a11n

    (@eastofwest)

    Thanks for the feedback wp_seo_02. Will fiddle with it some more.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Post Types – how to get the URLs I want?’ is closed to new replies.