Hi Minesh, I just found out that your solution is not working or you misunderstood me. Your query filter just checks for this condition:
Position an der Klinik is a string like VIEW_PARAM(position)
This is wrong. I don't want to display Mitarbeiters where the content of the "Position an der Klinik" field contains text similar to the page title. I want to display the "Position an der Klinik" only for the specific Klinik where the View is inserted. They are connected after all.
This guy has two "Positionen" at two different "Kliniken": lien caché
I want to display his position only at the clinic where the view is inserted.
Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
The content template you build is too confusing.
Can you please create a test post where I can show you the demo and will share the required view.
You are using many views in single content template and its too confusing how you are using that content template with your page builder.
You may try to create a simple content template without any things and just add the required things you want to display and then let me know with what post type or post relationship you want to display what. This is something simple but you maybe doing it really complicated way.
The 2nd view you added to your content tempate " View „Position at Klinik“":
=> lien caché
I can see its displaying the correct related positions - is that correct output?
Hi Minesh,
sorry for the late reply, I was ill.
It IS very complicated indeed. That is why I need help after all. I don't know how I can make it any easier for you, maybe with some test posts. So here comes:
I set all normal Mitarbeiter to Draft, so there are only three Dummies left:
lien caché
They are working in different positions here at those test clinics:
lien caché
lien caché
Doc Martin is the important one, he is working at both test clinics!
lien caché
Now please check my attached image - only his position at the Toolset clinic should be shown on the page of the Toolset clinic. His position "Master of Javascript Chirurgy" is his job at the Clinic for WP Problems, so it should not show up on this page.
Maybe a simple conditional would be enough so the other Kliniken are ignored in the loop of the nested view?
The views here lien caché show the correct data, but too much. It should only show the position of the currently shown clinic.
Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
You have made really complicated structure and I'm not getting anywhere near from where what content is get displayed as you are using multiple views inside content template and the same content template you used to display with single page/posts.
So, I've created the following view:
=> lien caché
Where I set the view to display the related posts by adding the "Query Filter":
Filter by post relationship or repeatable fields group owner
Select posts in a Kliniken Mitarbeiter/innen relationship that are related to the Post where this View is shown.
And the within the view's loop I'm displaying the following content:
[wpv-post-featured-image]
[wpv-post-link]
<li>[types field='position-an-der-klinik' item='@klinik-mitarbeiter.intermediary'][/types]</li>
I can see now it displays th correct position: lien caché
You can remove the other view added to your "clinic-for-toolset-problems" page by editing it.
To be clear: I followed your documentation, that structure is not my idea.
That template is pretty simple, so how can I build it with the Block Editor?
Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
You can build the view's loop output using blocks.
Please check the following view:
=> lien caché
Navigate to button "Edit with Block Editor" and click on it. It will allow you to edit this view's loop output using blocks.