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.
Viewing 15 topics - 166 through 180 (of 292 total)
Problem: I have a one-to-many post relationship set up between two custom post types. In a View of the child posts, I would like to display information from the parent post.
Solution:
In the Blocks View editor, you can display related post information by following the documentation linked below.
In the legacy Views editor, you can use the Post Selection tab in the Fields and Views popup to select the related post you want to display. See the screenshots in the replies below for more information.
Problem: When displaying a View of related posts in an M2M relationship, I would like to display custom field values from the intermediary post type (relationship), but the Types field shortcodes do not appear to be working correctly.
Solution: Be sure the Types field shortcodes use the proper item attribute syntax @relationship-slug.intermediary.
Problem: I have a post relationship set up between two custom post types. On the single post page for one of the custom post types, I would like to display a list of all the related posts.
Solution: Use Query Filters in this View to display only those posts that are related to the current post being displayed.