Navigation überspringen

[Gelöst] Trying to follow a new Toolset article custom post type article, not working

This support ticket is created vor 3 Jahren, 2 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
- 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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 3 Jahren, 2 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2301825
gallery-connect-post-types.jpg
gallery-connect-post-types2.jpg
gallery-connect-relationship.jpg
gallery-connect-combined.jpg
gallery-connect-works.jpg
gallery-connect-works2.jpg

I am trying to follow the 3rd explanation in this article from Toolset. Instructions for "Displaying 3rd-party Gallery Blocks Inside Single-post Templates"
https://toolset.com/2022/02/3-non-obvious-applications-of-post-relationships-in-wordpress/?unapproved=735819&moderation-hash=c75c91cccb1ea2608c177aad38778396#comment-735819

I am trying to use this method with the Hbook plugin which has a custom post type “Accommodation”
I created “Room Gallery” post type in Toolset.
Connected them one to one. Accommodation. > Room Gallery
I added a Room gallery post with a Kadence gallery in it.
When I go to an Accommodation post I can connect the room gallery using the "connect room gallery" button that now appears in the post.
Then I insert the Toolset single field block.
In block tools I select "Child:Room galleries" for Post Source
BUT THEN Post Field strangely displays Post Title, Post Slug and many more BUT NOT Post Content(Body)
Do you have any idea what is wrong?

OK I have investigated a bit more and discovered that the Post Source drop down after Other Post actually lists the Room Gallery post specifically by name. "Mini apartment with kitchenette gallery" When that is selected Post Field shows Post Content (Body)
Select that and it works as per the tutorial.
Selecting Child:Room Galleries does not work.

#2302013

Minesh
Unterstützer

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Based on the screenshot you shared, It seems that you are trying to add the single field block directly on the parent post body (block area).

I would like to inform you that you should create a content template (Toolset => Content Templates) that should be used to display your parent post and within that content template you should first select your parent post from top dropdown and then try to add a single field block and see if you able to see the post body with single field block.

If that does not work, try to save the content template first and then try to add single field block and then see if you able to see post body.

We also updated the tutorial about it - you can see the 5th point:
- https://toolset.com/2022/02/3-non-obvious-applications-of-post-relationships-in-wordpress