Skip Navigation

[Resuelto] Cannot select a child relationship to display when adding a shortcode

This support ticket is created hace 6 años, 1 mes. 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/Hong_Kong (GMT+08:00)

Etiquetado: 

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Luo Yang hace 6 años, 1 mes.

Asistido por: Luo Yang.

Autor
Mensajes
#1121988
Screen Shot 2018-10-06 at 17.46.32.png

I am trying to: show the post-body of a lyric, which is related to a work

Link to a page where the issue can be seen: can't show you, as it's on the admin section

I expected to see: the lyrics radio button enabled for the works-lyrics relationship

Instead, I got: a grayed out button.

This is highly frustrating as the tooltip says I need to have a view in order to display this, but I DO have a view. I've never managed to get any of my relationships to show the child portions of the relatyionship, as you can see in the attached screenshot. What am I doing wrong?

#1122554

Hello,

The works-lyrics relationship is one-to-many relationship, in order to display multiple related "lyrics" posts, you need create a post view:
1) query posts of post type "lyrics"
2) filter by the works-lyrics relationship

See our document:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

section "Displaying many related items"