Skip Navigation

[Resolved] Automatically create a new taxonomy term when adding a new custom post type.

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Author
Posts
#1242303

Need to know how to create a new taxonomy automatically when I add a new custom post

#1242344

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ray,

This is possible but there needs to be some criteria for the taxonomy creation. I'm assuming your talking about adding a new term to an existing taxonomy.

Please provide a little more detail on this for me.
Thanks,
Shane

#1242413

Hi there!
Well, here's what I've got thus far and what I want to accomplish.

So far, I've created a custom post type for adding Speakers (political, motivational, financial, etc for the speaker types). On the profile page of each speaker, I'll be displaying fields from my custom post type such as their areas of expertise, a featured image, featured video, bio, speaker title, etc. Along with the aforementioned items I'll be displaying, I will also need to display testimonials, reviews, as well as an image carousel that will show the logos of the places they've given speeches and/or the logos of various corporations. These items are to be displayed on the speaker on their profile page (i.e. custom post).

So, what I'm thinking I need to do now is create custom post types for testimonials, reviews, (image carousel I'm completely unsure how to do with Toolset, perhaps I should make that a custom post type as well?) and, then set these post types up as relationships. Right?

What I need to do is make it so that I can post a new testimonial or review and link (via relationship?) it to the correct speaker. For example, let's say I'm posting a new testimonial for a speaker named Tom Smith, well, how should I go about setting things up so that I can assign or attribute that testimonial to Tom Smith so that it'll be displayed on his speaker profile page?

#1242596

Anyone available to help me with this today?

#1243078

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ray,

Thank you for the updated information. SO its not that you want to automatically assign a taxonomy on post creation but you want to automatically assign the post parent.

This is definitely possible, have a look at the link below.
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

It should be able to guide you through setting up the form so when you create testimonials or reviews. As long as it is created from the Speakers cpt.

Please let me know if this helps.

Thanks,
Shane