Skip Navigation

[Resolved] Related Post Types & Views

This thread is resolved. Here is a description of the problem and solution.

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 3 years, 4 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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 11 replies, has 2 voices.

Last updated by abbyJ-2 3 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#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? hidden link

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

#2291459

Minesh
Supporter

Languages: English (English )

Timezone: 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
Supporter

Languages: English (English )

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

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

#2294469

I'm so sorry Minesh, it's: hidden link

#2295201

Minesh
Supporter

Languages: English (English )

Timezone: 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" (hidden link). 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" (hidden link) 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
Supporter

Languages: English (English )

Timezone: 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
Supporter

Languages: English (English )

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

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

I can see the archive displays the all Members:
- hidden link

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

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
Supporter

Languages: English (English )

Timezone: 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: hidden link
=> hidden link

I can see its displaying the correct result.
- hidden link

#2296841

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