Views is a WordPress plugin that lets you display post relationships. In our user guides, you can find more information on how to display child posts, related posts, brother pages, fields of parents and fields of grandparents. When you ask for help or report issues, make sure to tell us the type of the relationship you are trying to build and the structure of your data.
|LL||2||1 week, 2 days ago|
|Custom field from a Related Post is not displayed.||3||1 week, 5 days ago|
|probleme with woocommerfc||2||3 weeks, 3 days ago|
|Connect posts to parent by custom field||2||1 month, 1 week ago|
|Sort by View 1 2 3||3||1 month, 2 weeks ago|
|Connecting CPT using Relationship or Custom Field||2||1 month, 2 weeks ago|
|Performance problem with large tables (legacy post relationships)||2||2 months, 1 week ago|
|Using Access Control in relationship custom post||2||2 months, 1 week ago|
Need a more stable way of hiding CPTs that have no child relations…
Problem: I have a nested View structure that shows parent posts in the outer View and child posts in the nested View. In some cases the parent post has no child posts, and I would like to hide those parent posts in the results. The problem is that the nested child post View is filtered. Is there a conditional that tests whether or not a parent post contains these filtered child posts?
Solution: You can solve this without custom code by restructuring the Views. Instead of displaying the parent post information in the outer View, display the parent post information in the nested child View, inside wpv-items-found but outside wpv-loop. Use the item attribute to display parent post information with any shortcodes in the nested View, since the post context in the nested View is the context of the child posts. The syntax for the item attribute is item="@relationship-slug.parent" in a typical one-to-many (O2M) relationship.
Relevant Documentation: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/
|3||2 months, 1 week ago|
Create a single table view with data from multiple post types
I want to create a table structure with sort able column heads to contain data from five different post types .
Toolset Blocks plugin is using WordPress class WP_Query to query post data, according to WP document:
In order to sort the results, all custom fields should be in same post type.
So there isn't such kind of built-in feature within Toolset
|3||2 months, 1 week ago|
|Sum of custom field of intermediary posts in nested view||2||2 months, 2 weeks ago|
|Filter by ancestors: parents and grandparents great grandparents not working||2||2 months, 2 weeks ago|
|Displaying a View||2||2 months, 3 weeks ago|
Show second relationship info
Problem: I have 3 custom post types. A is related with B, and A is related with C. I have a view with C information and i want to show also B info that are related to A.
Solution: Depending on the types of post relationships, you may also need a View of post type A. - If A-C is a one-to-many (O2M) relationship and "A" is the parent, you do not need a View of A in this case. - If A-C is a O2M relationship and "A" is the child, there can be multiple A's related to each C, so you need a View of A. - If A-C is a M2M relationship, there can be multiple A's related to each C, so you need a View of A, regardless of which is the parent and which is the child.
Relevant Documentation: https://toolset.com/course-lesson/displaying-related-posts/ https://toolset.com/course-lesson/what-are-post-relationships-and-how-they-work/ https://toolset.com/course-lesson/many-to-many-post-relationships/
|2||2 months, 3 weeks ago|
|Relationship Forms only show One-to-Many relationships, not Many-to-Many relationships 1 2||2||2 months, 3 weeks ago|