Navigation überspringen

[Gelöst] Como mostrar en plantilla de contenido una relacion de Relationship

This support ticket is created vor 4 years, 6 months. 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 -

Zeitzone des Unterstützers: Europe/London (GMT+01:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von javierG-12 vor 4 years, 6 months.

Assistiert von: Nigel.

Author
Artikel
#2218403
Captura.JPG

Tell us what you are trying to do?

I have a directory of companies created with toolset, these companies have linked some projects that have been carried out and in the content template of that project I need to show the participating company, which I have created with realizations through Relationship.
And I don't know how to do it
Attached image

Can you help me?

The url of the site where I want to show it is this: versteckter Link

Thanks!

#2218455

Nigel
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01:00)

Hola Javier

To display related posts you need to add a View to your template, where the content the View displays is the child post type (the ficha de empresa post type on your site), and which includes a filter so that it only shows the empresas belonging to the proyecto currently being displayed (rather than all empresas).

It is described in this document, here: https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items

Can you check that, and if you still have problems, let me know.

Saludos

#2222089

My issue is resolved now. Thank you!