Skip Navigation

[Resolved] Type limitations for intermidiary post type

This support ticket is created 6 years, 1 month 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by sergeyO 6 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1151085

I am trying to: create relational data model using Toolset: Games (G), Players (P), Teams(T). T one to many to P, T many to many to G, P many to many G (intermediate T - required, because not all P participating in G and P can change T)

Link to a page where the issue can be seen:

I expected to see: intermediate field as a type, T type for example, not a simple field. Then I can have a table with 3 ids - id_g, id_t, id_p and I can build view of all necessary protocols. Or I'd like to creat relationships between GP table and T table

Instead, intermidiary tables like GP not shown in relatioships wizard

#1151217

Hi there,

Thank you for contacting us and I'll be happy to assist.

Your observation is correct and Toolset's post-relationship feature doesn't support creating relationships between "post types" and "intermediate post types".

To keep track of relationships between "Games-Players" and "Teams", you'll need custom code that makes use of "Post Relationships API":
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/

You can either store the IDs of all the relevant "Game-Players" intermediate posts, as a custom field value in the "Teams" posts or create and maintain a custom table ( ref: https://codex.wordpress.org/Creating_Tables_with_Plugins ) for storing all 3 IDs ( id_g, id_t, id_p ).

For a personalized assistance around custom programming, you can consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

I hope this helps.

regards,
Waqar

#1151256

My issue is resolved now. Thank you!