Tell us what you are trying to do?
I have a many-to-many post type relationship and am trying to create a header that displays only if posts are within the loop.
What is the link to your site?
You can see it on this page. Lecturer and Location are both post type relationships. I don't have a lecturer related to this post, but the header still shows up. The image attached shows how I set up the loop. hidden link
What if you try to change the condition for your conditional block as per the following screenshot and try to resolve your issue.
- hidden link
You should select "View Shortcodes" and further select the option "Number of Items found in Views" and compare that with greater than sign and static value zero (0).
Can you please share problem URL and send me admin access details and what view you created.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I've removed the existing conditional block and added the new one with the same conditions shared as before and I can see it working as expected:
- Screenshot:hidden link
- hidden link
It's not working as expected. Please take a look at the attached screenshot.
I'm supposed to be seeing a header "Lecturers" and a lecturer with his name and photo in the space above "Location". These are only meant to be displayed if there is a lecturer related to this specific course.