Skip Navigation

[Gelöst] Views using a relationship not showing all results

This support ticket is created vor 1 Jahr, 7 Monaten. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von marcialB vor 1 Jahr, 7 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#2605223
Bildschirmfoto 2023-05-11 um 16.36.52.png
Bildschirmfoto 2023-05-11 um 16.34.14.png

Hi there

We use views to display posts in a relationship with the current post. However, this only works partly - some posts are missing in the frontend. But it's pretty random, in same cases it works, in some it doesn't. I'm out of ideas why this happens. Maybe you can help us get those views up and running correctly.

I'll attach some screenshots.

Best,
Marcial

#2605485

Hello,

How do you setup the post views and relationship filters?
Can you provide a test site with the same problem, fill below private message box with login details, also point out:
- Page/post URLs(Where I can check the results in frontend)
- Post view URLs

I need a live website to test and debug, thanks

#2606303

Thanks for the details:
I have checked the post URL you mentioned above:
versteckter Link

1) section "Leitende Kompetenzzentren"
It is using post view "Leiter Kompetenzzentrum (Name & Link)":
versteckter Link
Above post view is filtered by relationship "Zugehörigkeit Leiter Lehrstühle zu Kompetenzzentren", and it does output two posts, same as in admin side:
versteckter Link
section "Zugehörigkeit Leiter Lehrstühle zu Kompetenzzentren"
Can you confirm it?

2) section "Leitende Kompetenzzentren"
It is using post view "Weiterbildungen eines Lehrstuhls":
versteckter Link
Above post view is filtered by relationship "Weiterbildungen von Lehrstühlen", there are some related "Weiterbildungen" posts are in draft status, and conducts the problem you mentioned above, I have done add a filter into above post view:
Select posts with status of publish or draft.

Please test again, check if it is fixed.
Or you can consider to publish those draft "Weiterbildungen" posts , for example:
versteckter Link

#2606939

Hi Luo

Thanks for your feedback. I think the drafted posts are the issue. I wasn't aware they are still there. They were replaced with new versions that share the same name. I'll get back to you once I fully investigated this.

Thanks!

#2607101

We were able to solve the issue. Thanks for your help!