Home › Forums › Backend Issues (wp-admin) › Bidirectional term-to-term relationship › Reply To: Bidirectional term-to-term relationship
Looping back on this, I’m surprised to find I can natively set a term-to-term relationship across terms in two different taxonomies (person
and company
) using wp_set_object_terms()
…
$term_taxonomy_ids = wp_set_object_terms( $bill_term_id, $microsoft_term_id, 'company' );
They are just objects.
And I can retrieve the company
connected to a person with wp_get_object_terms
like…
$bills_company_terms = wp_get_object_terms($bill_term_id, 'company');
However, putting a backend UI on that is another matter. Don’t know how to accomplish that. Any ideas?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.