• Resolved emilybop

    (@emilybop)


    Hi,

    First of all, thank you for the great plugin!

    My client has a request that I’m not sure if possible. We have a taxonomy set up for a CPT–let’s say the taxonomy includes slug-a and slug-b. Can I set it up so that when a new post is created in that CPT, slug-a in the taxonomy is automatically selected?

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

    (@tw2113)

    The BenchPresser

    Hey Emily,

    If you’re on 1.8.0 or higher, you should have a “Default Term” field at the bottom of the CPTUI taxonomy settings view.

    For this, we’re expecting a 1 to 3 possible values, in the order of name, slug, and description. Only the name parameter is required.

    So for example you could put “Genre” alone, and WP should create or find the “Genre” term and make use of it.

    You could also use “Genre, genre” which would set both the name and the slug to use.

    Lastly, “Genre, genre, TV show genres to choose” would set a description. Only real limitation may be using commas in the description portion, that may cut things off more than intended.

    Thread Starter emilybop

    (@emilybop)

    Hi Michael,

    Oh, that’s awesome! I was a little confused at first because I assumed that the term would be selected when I created the new post. But once I published it, the proper term was selected. Thank you!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome Emily.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default slug for taxonomy when post created?’ is closed to new replies.