• Resolved freelylw

    (@freelylw)


    I want to have all the taxonomy url looks like this https://www.website.com/name/tags/tagname-abc

    for example if there is a taxonomy call “beauty”, then the url should be like https://www.website.com/name/tags/beauty-abc

    2 questions :

    1: When I put “name/tags” into taxonomy slug setting field, it automatically convert to “name_tags”, so I can’t have something like “name/tags/…” ?

    2: where can I add the last part ( like “abc” ) into the url like “beauty-abc” or “house-abc” or “car-abc” , if the taxonomy is call “beauty,house,car…”

    Thanks

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

    (@tw2113)

    The BenchPresser

    Based on your example URLs, the taxonomy would be either “name” or as you’re trying, “name/tags” which is going to be invalid for WordPress core. Part of why we strip out the / in the slug field. Then, “beauty”, “house”, etc with the -abc tacked on would be terms in the taxonomy.

    My biggest question is why not make name_tags the taxonomy slug, and use the rewrite parameter to reduce it down to name for the permalinks. Then perhaps have tags be a parent term, and then beauty/house/etc be child terms. You can add the abc to them at that point as well, during creation.

    I’m recommending name_tags for the taxonomy slug since name alone is a reserved value by WP core, and the rewrite field would allow for customizing the permalinks alone.

    Thread Starter freelylw

    (@freelylw)

    thanks, but the -abc part still not clear. let’s say I have terms call “house” “car”…
    I need to put something after them in the url, like website.com/tags/house-abc , I can’t add the -abc into the term’s url one by one, I am importing hundreds terms though CSV into my site, so I need this to be done automatically .please advise where to set this up to have the -abc on all the term’s url ? Thank you

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    My next question is why does the -abc need to be included on the term? Best guess I have right now is perhaps you’re migrating content and that’s how the to-be-old permalinks had them?

    Not sure if the import process could be amended at the term creation stage to append that before doing the term insert.

    Redirects after the fact could help too, if that’s something that could be considered.

    Thread Starter freelylw

    (@freelylw)

    sorry is that what you mean I can’t add the -abc part into the url after the term ?

    It’s only for the seo purpose, we want all terms page to be able to search by the “-abc” ( abc just a sample) , so we want the -abc on all the term’s url.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    there’s nothing stopping you at a technical level, but how things are getting processed is the important part.

    If you’re making some terms by hand and manually, nothing would stop you from appending -abc to the term slug field. However, if you’re doing some sort of bulk/mass import, then the detail needs to be taken into account during the importing process before each term is created programmatically.

    For what it’s worth, we have kind of gotten away from the original question regarding permalinks, which I feel is going to come down to how the content is ultimately structured, especially since there are 3 parts to the originally referenced url structure:

    /name/tags/THING-abc

    Think of “THING” as just a visual place holder. I still think name would be good for the taxonomy slug, and then tags and THING-abc would be good parent/child terms that would get what you’re looking for without having to muck around with custom rewrite rules.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Taxonomy url setting problem’ is closed to new replies.