Problem:
Multiple nested relationships for sports league
Solution:
When you have complex relationship structure and having said that that may be a chance that you many need to use custom code as some point not because of how Toolset relationships are implemented, but because of the data structure based on which you want to implement the solution.
However - the best way I can suggest is you should go and create a test site using one of the our available reference sites available at discover-wp.com and try to implement your structure. This will gives you a chance to work with Toolset post relationships - how it works and also help you to check feasibility about your complex structure and you will be able to know at which point you may need custom code or not.
Hi, I would like to create a Post Type for Comments so that
1) comments can be left by visitors after they are redirected to the comments page;
2) and that the comments which they had left for a specific product are displayed below on the product page of this product (I mean finally within the Post Type for this product and not where the comments themselves were left and stored)
Solution:
You can create a custom post type, for example "My comment CPT", setup one to many relationship between post type "Product" and "My comment CPT"
Problem: When I include a Content Template shortcode or a wpv-woo-display-tabs shortcode, information from the current post is displayed instead of information from the parent post.
Solution: This issue has been resolved in the latest version of Toolset plugins.
Problem:
Restrict the relationship options to posts created by the current user
Solution:
To limit the options that this selector will offer to posts created by the current visitor, just add the following attribute to your shortcode that lists the parent posts:
The issue here is that the connect to existing post in the post relationship window not displaying correctly.
Solution:
In this case it was a plugin conflict and wha I would recommend is that you temporarily disable all the non-toolset plugins and try again to see if this popup start displaying correct.
Problem: I would like to get the parent post Course of the current post Product using the new Post Relationships API, but it doesn't seem to be working. I have tried both of these syntaxes:
Solution: In this case, the relationships were created in the new system, so toolset_get_parent_post_by_type is not appropriate. The toolset_get_parent_post_by_type API is intended for use with legacy relationships, or relationships that were migrated from the legacy system. When specifying the relationship to query, the array syntax is intended for legacy relationships as well. The best approach in this case is to use the toolset_get_related_posts API, and the relationship slug instead of the post type slug array:
Problem:
The toolset_get_related_posts function of the API has a lot of possible arguments, are they all required?
Solution:
The first 3 are required for one-2-many relationships.
For m2m relationships all 8 arguments are required. (We plan to update this to make it easier to pass only certain arguments and leave others as default.)