Skip Navigation

[Resolved] User Custom Field

This support ticket is created 5 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 5 years, 3 months ago.

Assisted by: Beda.

Author
Posts
#1328535

I was hoping that I would be able to create a custom field against my post type that enabled me to select from a list of users in the system.

I know that Advanced Custom Fields and Pods has this feature. Can it be achieved in Toolset?

I'm struggling with the fact that there are parts of all of Toolset, Advanced Custom Fields Pro & Pods, that do exactly what I want to achieve, however individually they are missing parts!

#1328669

It's not possible in the GUI to make Custom Fields populated dynamically, in Toolset Types.
The only option would be to use Custom Code and the undocumented API wpt_field_options, but fields created with that API will NOT work in Toolset Views Filter builder, and that is why it's not suggested/natively possible.

You'd have to suggest such a feature to Toolset's Product Management here https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

You could craft a custom solution following examples in our forum, like https://toolset.com/forums/topic/add-select-field-to-users-from-a-custom-post-data/, but as said, it is not suggested, given the fields are not ready for usage in Toolset Views FrontEnd Filters later, as used to from "native" Toolset Fields.

You can also achieve something similar using Toolset's Relationships, either Post Relationships or Post Reference Fields, but you'd have to "duplicate" your users to a post type like described here:
https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/
That approach allows you to later choose from a select list the "user" (now a post type) related to the post.