Skip Navigation

[Resolved] Display Relationship post name, instead of ID

This support ticket is created 6 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
- 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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1127152
Screen Shot 2018-10-14 at 9.54.37 PM.png

Tell us what you are trying to do?
I want to see Relationship Posts list with name, not ID.

When I list Relationship-Posts (Between Area and Commodities. The relationship has a description field.)
As it is now:

Areas Commodities: 937 - 946
Areas Commodities: 937 - 119
Areas Commodities: 937 - 975
etc...

As I want it to be:

Areas Commodities: Golden Triangle - Gold
Areas Commodities: Golden Triangle - Zinc
Areas Commodities: Golden Triangle - Silver
etc...

Is there any documentation that you are following?
Yes, the relationship documentation.

Is there a similar example that we can see?
Not sure.

What is the link to your site?
hidden link

#1127281

Hello,

I assume we are talking about a intermediary post type in many-to-many relationship.

This is expected result, if you don't setup the post title manually, it will use post ID to generate the post title, and there isn't such an option/feature to use related post title to generate the new post title.

You can try one of below two options:
1) Edit the intermediary post type, enable post title field, then edit each intermediary post, setup the post title manually.

2) Or in front-end, you can a post view, list intermediary posts, display the related post titles as what you want:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-one-related-item-parent