Hello,
This is more of an API/coding question. But I believe I can clearly explain it.
Basically we've been using the "Toolset Types" and "Toolset Blocks" plugins for our new site.
I've created a post type with Toolset (Toolset>Post Types) called "Books".
Next I created another Toolset post type called "Strategies". "Strategies" uses several custom fields plus 2 field groups.
Finally, we created a relationship (Toolset>Relationships) between a "Book" and a "Strategy". This is a one-to-many relationship (Infinite "Strategies" can be assigned to one "Book"). Then I created a book and several strategies that are assigned to that book.
We are using mu-plugins for customization on several fron-end pages on our site.
My question is: if I have the post ID for one of the "Books", how am I able to see the "Strategies" assigned to it? (get their post ids) Specifically, is there a Toolset API function I can call or maybe even a core WordPress one?
I tested some of the API calls on https://toolset.com/documentation/programmer-reference/toolset-custom-field-api/ but I was not able to find anything that would help me in this particular instance.
I believe this has to do with Toolset relationships and the fact that several posts ("Strategies") are assigned to one "Book" post.
I hope this makes sense, if not please let me know and I will be able to clarify.
Thanks,
Matt
My issue is resolved now. Thank you!