Skip Navigation

[Resolved] Custom field displays id and not the description in the relationship view

This support ticket is created 6 years, 1 month 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 6 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1177851
categories.png

I am trying to: Display my category name, not the id in the relationship view. Initial ticket:https://toolset.com/forums/topic/vendor-equipment-relationship-displays-category-id-and-not-the-category-name/

I expected to see: The category name of the custom select field.

Instead, I got: The category id of the custom select field.

I've attached a screenshot of the custom select field and some of it's values.

#1178523

Hi, if you use the Types field shortcode to display a custom select field, by default the text should be displayed instead of the numeric value. For example:

[types field="category"][/types]

Are you using a different shortcode, or other options? If so, please share in your reply.

#1180915
1166850-category_id.png

I'm not using any tag. It's in the relationship view. The screenshot is attached. From my vendor screen, it shows the related equipment. However, instead of showing the category text from the custom select, it's showing the category id.

#1180938

Ah, I misunderstood. I thought you were talking about a Toolset View. I see what you're describing now, and I can replicate it locally on my own site. If I add the custom field to the main admin list for a post type, the option text is displayed. However in the Post Relationship editor area the raw option value is displayed. Seems like those two should be consistent. I'll ask my 2nd tier team if I'm missing something obvious, like a way to change the display in the post relationship editor. I'll let you know what I find out.

#1181511

It turns out there is not a built-in way to choose whether the label or value is shown in the relationship editor panel. I've asked my 2nd tier team to submit this as a usability issue, and I'll keep you posted here as I receive more information.