Problem:
I have several parent Posts of several Child Posts.
How do I display them all in one View?
Solution:
Please select all Post Types in the View's Setting "Content Selection" that you need in this View (all child posts)
Do NOT select the Parents of the Post Types that you already Query in this View.
You can access the Information of those Post Types easily with the ShortCode ID attribute "id".
Hence, do select only the CHILD post Types of which you want to get parent information.
Then, in the Loop, call the fields once a Post Type.
This means, your Loop or Content Template will look similar to this after:
<td>[wpv-post-link id="$group"] [wpv-post-link id="$other_parent"]</td> <td>[types field='group_sort_name' id='$group'][/types] [types field='group_sort_name' id='$other_parent'][/types]</td> <td>[wpv-post-taxonomy type="area" id="$group"] [wpv-post-taxonomy type="area" id="$other_parent"]</td> <td>[wpv-post-taxonomy type="genre" id="$group"] [wpv-post-taxonomy type="genre" id="$other_parent"]</td>
Above will show information about the parent post types "group" and "other_parent".
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 2 replies, has 2 voices.
Last updated by 7 years, 2 months ago.
Assisted by: Beda.