Skip Navigation

[Resolved] Intermediary Post Field not showing, Content Template broken

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 20 replies, has 3 voices.

Last updated by Minesh 1 year, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2575199
2023-03-17__Toolset-Filter-by-connected-post-type.jpg

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": hidden link
I want to display his position only at the clinic where the view is inserted.

#2576673

Minesh
Supporter

Languages: English (English )

Timezone: 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“":
=> hidden link

I can see its displaying the correct related positions - is that correct output?

#2579169
2023-03-23__clinic-for-toolset-problems.png

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:
hidden link

They are working in different positions here at those test clinics:
hidden link
hidden link

Doc Martin is the important one, he is working at both test clinics!
hidden link

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 hidden link show the correct data, but too much. It should only show the position of the currently shown clinic.

#2579195

Minesh
Supporter

Languages: English (English )

Timezone: 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:
=> hidden link
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: hidden link

You can remove the other view added to your "clinic-for-toolset-problems" page by editing it.

#2581147

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?

#2581155

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can build the view's loop output using blocks.

Please check the following view:
=> hidden link

Navigate to button "Edit with Block Editor" and click on it. It will allow you to edit this view's loop output using blocks.