Skip Navigation

[Resolved] Modify how the Selector for Parent Post displays

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

Problem:
A Toolset Form includes a parent post selector, and the dropdown which lists the parent posts is in the format post ID : post title, when all that is required is the post title.

Solution:
This arises in certain circumstances depending on the form in question, but the post ID will be removed in the next update so that only the post title appears.

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 3 voices.

Last updated by cristianM-3 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#906501
forms-select-parent.png

I have added a form field to select the parent post using the new relationship features. I'm trying to follow the instructions on this page, https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

Everything works great except I don't like how the drop down selector is presenting the choices. It's showing the post id, last name and first name. How do I tell it which fields I want it to show in the drop down selector?

Here's how the Forms field is coded

<div class="form-group">
[cred_field field='@hr-profiles_wtn-document.parent' select_text='Select a Worker' class='form-control wtn-field' output='bootstrap']
</div>

Attached is a screenshot showing how it's displaying the post id, first name and last name

#906798

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Kent

The parent selector normally displays the post title, and I'm not actually aware of anyway to change it.

What do the post titles of the parent posts look like?

#906833

Well, upon comparing the parent selector to the posts I see that it's displaying the Post ID followed by the Post Title. I could settle for just the Post Title, but would really like to remove the Post ID. So no way to modify how it displays Parents in the Parent Selector?

Kent

#906899

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Kent

I only see the title, so I checked with the developer who said that depending on the particular circumstances you might see ID - title rather than just the title, but that this will be removed in a minor update containing a few bug fixes that should go out in a week or so.

Hopefully you can wait for that for the change.

#906929

Thanks for the update. I'll look forward to the update. Glad to hear it's in the plans to fix. Not a huge deal, just annoying.

Thanks for your help

Kent

#907830

Hello

I can confirm the same annoying issue with the ID coming up before the title in the selector.
Is there a way to change that "particular circumstances" or to choose if we want the ID or the Title to appear?

Thank you
Cristian