Skip Navigation

[Resuelto] Cannot select fields from related post types when adding dynamic blocks

This support ticket is created hace 3 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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/Karachi (GMT+05:00)

Etiquetado: 

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Waqar hace 3 años, 2 meses.

Asistido por: Waqar.

Autor
Mensajes
#2163777
Screenshot 2021-09-08 at 20.45.12.png

I am trying to:

add fields to a page from a post related by a toolset relationship

Link to a page where the issue can be seen:

enlace oculto

I expected to see:

Some way to chose fields from related posts

Instead, I got:

no options to do so.

#2163811

I forgot to add that if I use the 'fields and text' block I can select the field and then choose the related post time. It's just that these options don't appear in the dropdown when I want to make a block use 'dynamic content.

#2164133
post-source-block.png

Hi,

Thank you for contacting us and I'd be happy to assist.

Have you tried changing the current post option from the "Post Source" field?
( example screenshot attached )

When post-relationship exists, this field shows the option to select the related post, to get the fields from.

regards,
Waqar

#2164145

Yes, that is the problem - there are only 2 options in that drop down: current post and other post. It’s not showing related post.

#2164277

Thanks for writing back.

An important point to note is that the block's post source field only shows the option to select the related post, if only one related post can be connected to the current page/post.

For example, suppose you have a one-to-many relationship between "Pages" and "Posts", where one Page can be connected to many Posts.

In this case, you won't see the related posts option as a source, when editing a page, because, a page can have many related posts.

To show related posts where multiple related posts can exist, you'll need to create a view with a relationships filter query, as explained in this guide:
https://toolset.com/lesson-placement/lesson-placements-1729031-1730449/#displaying-many-related-items