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 - 226 through 240 (of 294 total)
Solution:
To filter the view result by parent, You will require to add a "Post relataionship" query filter from your "Query Filter" section of your view/block view and set the option "The post where the view is sown".
Problem: I have two custom post types. On the template for CPT A, I would like to display two posts from CPT B in a View. In the post editor for CPT A, I would like to choose which two posts should be displayed in the View.
Solution: Use a many-to-many relationship between CPT A and CPT B to select which posts from CPT B should be displayed in each post of CPT A. Use a View of CPT B with a post relationship filter in the template for CPT A to display the selected posts.