Skip Navigation

[Resolved] Related post title not available in "fields and text" block

This support ticket is created 4 years, 4 months ago. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Daniel Stadeli 4 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#1772585
Toolset single field.png
Toolset fields and text - missing related fields.png

Hello,
In Gutenberg, when using the single field block, I can insert the post title of a related PT (Klient) -> OK
When using the fields and text block, the related PT shows up with custom fields (Geburtstag), but post title and post content are missing. See screenshots. I need to access the post title. I want to write:

Klient: Marianita Zambula (patient: name; where name is the post title of the Klient PT).

Tell us what you are trying to do? on the content template for cases I want to show the name of the patient (post title of a related CPT). Model: One patient (Klient) can have many cases (Fallverlauf).

Is there any documentation that you are following?
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/

Is there a similar example that we can see? hidden link
I can insert the name of the patient (Marianita Zambula) by using a single field.

What is the link to your site? hidden link

Your answer will be: please use a view. My response is: this is very user unfriendly. To be successful with Toolset as the awesome tool that it is, the approach should be the same every time. Even the different approach between single field block and fields and text block is VERY confusing for the average user. In the first case you use drop downs, in the second case a list to choose a field from (I think this is easier).
Unless I'm completely mistaken, you may consider sending this to your product manager to see if this can be included?

Best of greetings from Dallas!
Daniel

#1773031

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2020-09-11 at 10.10.36.png
Screenshot 2020-09-11 at 10.08.27.png

Hi Daniel

From your screenshots it seems like you are not quite looking in the right place, but that something is nevertheless wrong.

The Fields and Text block is a bit of a bridge between legacy Views and the new Blocks interface and so the UI includes the old Fields and Views button for inserting dynamic fields.

But when you press that button (the little icon) the UI that opens up (your second screenshot) should show Post Title and other standard fields first, at the top (my screenshot).

I've never seen them missing as they appear to be in your screenshot (unless you had scrolled down to find the Klient fields and I simply can't see them).

When they are visible, if you choose to insert the Post Title the resulting dialog (second screenshot) includes a Post selection tab where you can specify the source for the title, in this case it would be from a related post, where you specify the relationship.

If you are unable to see that then we would need to go through some basic steps to see if we can isolate why not.

You should check whether there are any JS errors in the console.

Check your debug.log to see if there are any relevant PHP errors or notices.

Deactivate all non-Toolset plugins to see whether something else is conflicting with the process, and switch to a default theme such as twentytwenty.

Let me know what you find.

#1773497

My issue is resolved now. Thank you!