Views is a WordPress plugin that lets you easily design the display of single pages using content templates. You can also include any field belonging to the content in your templates, without writing PHP code.
When you ask for help or report issues, make sure to tell us what you have created so far and what you want to achieve.
Viewing 15 topics - 1,771 through 1,785 (of 2,080 total)
Problem: I need to show all the workers belong a Job (parent) in a list in the parent content template.
Solution:
One way to do this is to nest two Views together.
1. Create a View of Jobparts, filtered by Post Relationship where the parent Job is set by the current post
2. In the Loop editor of that View, click "Loop Wizard" to design an unformatted loop. For now, insert the Post Title shortcode.
3. Place this View on the single Job post page, and you should see a jumbled up list of Jobparts. That's fine for now.
4. Create a View of Workers, filtered by Post Relationship, where the parent Jobpart is set by the current post in the Loop
5. In the Loop Output editor, build your list of Workers however you would like to format them
6. Edit the View of Jobparts and delete the wpv-post-title shortcode in the Loop Editor. Replace it with the shortcode to display the View of Workers.