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 - 706 through 720 (of 734 total)
Problem:
How to test whether a child post has a parent, using wpv-conditional.
Solution:
With the switch to Types 3 the format of the conditional statement required has changed, and using the GUI to insert fields will ensure the right format is used.
So, insert the field you want to test into the template using the Fields and Views button, using the post selection tab to identify what would be the parent.
Then manually copy and paste this into a wpv-conditional statement, to achieve something like this:
[wpv-conditional if="( '[wpv-post-id item='@relationship-slug.parent']' ne '' )"]
HAS PARENT
[/wpv-conditional]
Editing Existing Connections between Related Posts and using the Albums/Songs (Beatles - Revolver) examples with the intermediary post type tracks.
if I set up a view based on the intermediary post type tracks I can order by the track number but when I add the relationship form for editing the intermediary field track number I get the following message:
The items in the conection are not actually connected
Solution:
You need to edit the post relationship(between "Albums" and "Songs") within a "Songs" post.
Problem: I would like to loop over repeating fields in a parent post using wpv-for-each.
Solution: You should create a View that shows the parent post, then use wpv-for-each inside the View's Loop Output editor. The wpv-for-each shortcode is not designed to show fields from a parent post.