• Resolved nofcfro

    (@nofcfro)


    Hi,
    I am setting up CTP UI but I can’t figure out how to properly configure URLs.

    If I use the default WordPress posts and categories, I have a permalink like this:
    eg. mywebsite.com/category/article

    Now, if I use CPT UI without the taxonomies, I get a similar result
    eg. mywebsite.com/movie/article

    The problem is with the use of categories:
    eg. mywebsite.com/movie_cat/genre

    Question: how can I get permalinks like this:
    eg. mywebsite.com/genre/article

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    For my clarity, is “genre” a taxonomy? or a term in that taxonomy?

    I am assuming it’s a term, based on the “movie_cat/genre” example.

    So, you’re basically wanting permalinks of “.com/taxonomy-term/post-type-post-slug” ?

    Thread Starter nofcfro

    (@nofcfro)

    Hello,
    I’m trying unsuccessfully to replicate the wordpress structure: category/article permalink also on CPT UI.
    CTP UI instead uses:
    Post Type Slug (film) / Article Name (e.g. mysite.it/film/rainman)
    and Taxonomy Slug (cat_film) / Category Name (e.g. mysite.it/cat_film/drama)

    Now, how can you have a simple mysite.it/drama/rainman?

    Thank you!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    That’s part of what I’m struggling with at the moment, I’m not familiar, at least out of box, with a “category/article” permalink structure.

    I do know the out of box options of:

    Plain
    Day and name
    Month and name
    Numeric
    Post name

    I’m wondering if it’s perhaps something custom done for your install?

    Thread Starter nofcfro

    (@nofcfro)

    Yes, I would like to know if with the default settings it is possible to achieve my result or if I need to make customizations to the code.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m assuming it’s possible then since you’ve already had it done with posts, but you’d need to see about how it was done there so that it could be potentially modified or copied to also work with post types. We don’t have settings around customized permalink structures, but there are spots to customize components of the eventual permalinks, as part of WordPress’ register_post_type() code.

    For example, if your post type is “movie” but you want the permalink to use “film”, you could set that with the rewrite slug field.

    I’m also personally curious what custom code was used for this category/article structure

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPT UI and URL’ is closed to new replies.