How to add taxonomy behind custom post type slug

Support MB Custom Post Type How to add taxonomy behind custom post type slugResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40898
    JooJoo
    Participant

    Hello,
    i have the custom post type sightseeing
    and have a taxonomy "locations" for sightseeing.

    So on locations taxonomy my slug is "locations"
    and it has countrys and cities.

    Is there a way to move that taxonomy behind the custom post type and delete the main first slug locations

    i tried several thinks like rewrite tag or hirachical and and and, but it does not work.

    atm all my sightseeing articles are behind the sightseeing/articlename
    and i want domain.com/sightseeing/usa/newyork/articlename

    need: sightseeing/usa/cities/articlename
    maybe: sightseeing/locations/usa/city/articlename

    best regards

    #40915
    PeterPeter
    Moderator

    Hello,

    Customizing the permalink settings is beyond the scope support of Meta Box. You can try to go to Settings > Permalinks > Custom structure > and set it to /%category%/%postname%/.

    Or follow this article to customize the permalink with coding https://stackoverflow.com/questions/57765487/how-to-add-custom-taxonomy-in-custom-post-type-permalink
    https://support.metabox.io/topic/post-type-and-then-taxonomy-for-url-structure/?swcfpc=1#post-40569

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.