Is there a way to use the Query Filter in views (legacy) to only display posts that have an empty relationship ?
I can use a condition in the views loop that works (with page breaks) but it lists all 30,000 posts.
I just want it to show only the few posts that have no relationship.
Hello. Thank you for contacting the Toolset support.
Can you please share details about what post relationship do you have and between what post types and what is the post relationship slug and for what post type you created the view.
It's a one to many relationship (nation-sc_ladies-results) and the view is in ladies-results.
The conditional setting in the attached loop works but I would like to have it work at the Query filter.
The query filter setting as shown does not work .
Can you please share where on what page you have added the view and what view you are using and send me admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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'm not sure who else is looking at this ticket as I'm the one who is actively working on this ticket 🙂
Maybe I tried proxy to access the website that is why you might be thinking that 3-4 people accessing the website but I'm not sure who else other is looking at your site 🙂
Glad to share the solution and you are welcome to mark resolve this ticket.
I tried to use the same coding with alterations for different relationships but had no success.
The ladies-results post type has 4 different one to many relationships. I'm trying to make 4 different views that will find the posts that are missing any of these relationships. It works for the nation-sc to ladies-results relationship but not for the others. The other 3 are ladies, ladies-event, and club-sc.
When I change the slugs and view id, it either never loads the page, or crashes. Even if I lower the amount of posts to display to 2.
You can use the same view id just swap out different custom code for each. As I noticed that a fatal error occurred if I had 2 codes active.
Thanks
New threads created by Minesh and linked to this one are listed below:
As the original question is already address with this support ticket.
I urge you to open a new ticket with every new question you may have. This will help other users searching on the forum as well as help us to write problem resolution summery for the original issue reported with this ticket.