If the term field data is stored in the termmeta, it should all be copied over when the term itself is synced (during a Broadcast).
Could you send me a BC debug text of a post that uses the term(s) in question?
Email it to edward@plainviewplugins.com
Thread Starter
mgofv
(@mgofv)
ahhh ok we get it now – we updated our post again and look, the values have been updated! (:
But then we would now like to take the question a little further: is there a way for us to run the broadcast when the term field is changed and saved? So when we update the term fields, they get broadcasted?
There are some ways that I can think of straight off, both requiring custom code to detect a taxonomy term change:
1. Use the BC API to broadcast a post that contains the changed taxonomy.
https://broadcast.plainviewplugins.com/doc/developer-api/
2. Use the Sync Taxonomies add-on, which allows you to just sync taxonomies programmatically (see notes).
https://broadcast.plainviewplugins.com/addon/sync-taxonomies/
Thread Starter
mgofv
(@mgofv)
Hi!
We bought the “Utilities Pack” extension and adapted and integrated the code from here: https://broadcast.plainviewplugins.com/snippet/sync-taxonomies-programmatically/ into our plugin.
It now works as we expect!
Thank you for the quick and good help!
-
This reply was modified 4 years, 1 month ago by
mgofv.