Saltar navegación

[Resuelto] Related Post Types & Views

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
How to display related posts using view/block

Solution:
Here is the official Doc that you should follow to display the related posts:
- https://toolset.com/course-lesson/displaying-related-posts/

Relevant Documentation:

This support ticket is created 4 years, 3 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
- 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 11 respuestas, tiene 2 mensajes.

Última actualización por abbyJ-2 4 years, 3 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2291203

Tell us what you are trying to do? I'm trying to show literature items that have been contributed by a certain team member (view 4373, Single Team Member.) It shows ALL contributions though. I also want to list all Team Members (ID 4433, All Team Members) but when clicking the team member picture, instead of going to that team member's page, it shows the other team members.

Is there any documentation that you are following? I've watched the relationship between custom posts videos

Is there a similar example that we can see? Like the gyms & trainers.

What is the link to your site? enlace oculto

Nothing is published on the site, so you will have to go into the backend.

#2291459

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the official Doc that explains how you can display the many related items belongs to a single post in relationship:
- https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items

I'm not sure how exactly you configured your views, after reviewing the above doc if you still have issues then I will require problem URL and admin access details with all required information about what content you want to display at what section.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2293645

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

When I try to access the admin URL: enlace oculto
- It shows me "Not Found" page. Can you please share working admin test site.

#2294469

I'm so sorry Minesh, it's: enlace oculto

#2295201

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Thank you for sharing correct URL but when I logged in using the shared access details I can only access the profile page. Can you please grant admin access to the user you shared.

In addition to that please share problem URL and share all required details what content you want to display on what section.

#2295621

Hi Minesh,

Sorry I'm a mess. Administration access is now given.

Here is the content template for "All Members" (enlace oculto). I want to show all custom post "Team Members," and when the image or name is clicked, have that go to the Team Member's page. Right now it is just showing other team members.

For the content template "Single Team Members" (enlace oculto) I want to show the Team Member's information, and then their contributions to the site, which is the custom post "Literature" which should have the relationship between Team Members under "Contributors." Right now it is showing all literature items that have an assigned contributor. I only want to show literature items that have been linked to a selected Team Members.

Please let me know if you need any more information. Thank you!

#2296599

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I would like to know first where you want to display "All members", have you created a page where you want to display "All members"?

Or you want to use WordPress Archive to display all members?

#2296685

I would like to display "All Team Members" under the WordPress archive "Climate Lit Team Members (Testing)".

Please and thank you!

#2296695

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I've added the view "All Members" to your elementor's archive template:
- enlace oculto

I can see the archive displays the all Members:
- enlace oculto

Then, I've set the content template "Single Team Member" to display for post type "Team Members":
- enlace oculto

I can see when you click on single team member it redirect user to correct single team member post.

#2296697

Absolutely perfect! That's what I wanted.

Can you see that on the "single team member" it still displays ALL Climate Lit contributions, not just the ones linked to that team member? For example, Lara should only show "The End of the World" literature item.

Thank you!

#2296839

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

To the single post content template, I've added the following query filter as you can see with the following screenshot to filter the results for current post displayed: enlace oculto
=> enlace oculto

I can see its displaying the correct result.
- enlace oculto

#2296841

Thank you so much Minesh! You showed me what I had missed and clearly fixed the problem for me!