I have organizations (organisaties) and I have jobs/vacancies (vacatures)
If an organization have 1 or more jobs I want to show the jobs on there page.
this is an example of an organization page :hidden link
for this organization I have 4 jobs/vacancies (vacatures) that I will show on the page.
if there are no jobs/vacancies, I don't want to show anything
Thank you very much
Hi,
Thank you for contacting us and I'd be happy to assist.
The view "Toon_vacatures¨van_huidige_organisatie" is set to show the jobs, related to the organization post, whose ID is provided in the shortcode attribute.
In your template for jobs "Template for Vacature", this view's shortcode is being used with the related parent organization post's ID, passed in the shortcode attribute "related":
{!{wpv-view name='toon_vacaturesvan_huidige_organisatie' related="{!{wpv-post-id item='@organisatie.parent'}!}"}!}
The same view can be used in the template for organization "Template for Organisaties 2", but, this time the current organization post's ID will need to be passed in the shortcode attribute "related":
{!{wpv-view name='toon_vacaturesvan_huidige_organisatie' related="{!{wpv-post-id}!}"}!}
You'll see that the related job posts are showing on the organization post now.
( screenshot: hidden link )
regards,
Waqar
My issue is resolved now. Thank you!