Problem:
It is possible to output fields from a parent post on the child post page in the content area, but used on other parts of the same page they are not output.
Solution:
Outside the content area the context of what is the current post is lost and so the relevant parent cannot be determined from the id="$post-slug" attribute.
The solution is to move the shortcodes which output fields of the parent into a new content template (unassigned) and to insert this content template into the child page using wpv-post-body and the id attribute to specify the child post id to re-establish what the "current" post is.
Relevant Documentation:
https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 2 replies, has 2 voices.
Last updated by MrHinsh 6 years, 10 months ago.
Assisted by: Nigel.