Update custom post with Taxnonomy if custom post is used in another custom post?
-
Yet again stuck at data entry system side.
I cannot find a way to automaticly update a custom post when it is used in another custom post type.
For example: ‘Man A’ in people post type has no taxonomys. Now i apply ‘Man A’ to a company post type who is under a Boss selection.
I would need ‘Man A’ to automaticly have Boss Taxonomy applied to his original people post type.
My current system is scary in long term as i would have to apply it in company, then manaualy pull profile to then also add the Boss taxonomy. Times that with thousands of entrys and project changing hierarchys…
I already have a drop down menu that pulls all people enteries. I would just need a way to automaticly apply the Taxonomy to the People post type aswell without need of manual editing every time.I have read up on wp_insert_term but not really clear on how i would apply this to my template.
Thanks in Advance.
- The topic ‘Update custom post with Taxnonomy if custom post is used in another custom post?’ is closed to new replies.