Navigation überspringen

[Gelöst] Add custom User field to View and cred

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem: I would like to show custom User fields in a View. Some of these fields are coming from Gravity Forms, and I cannot find them in the GUI.

Solution: You can go to Toolset > Custom Fields > User Fields > User Field Control and manage these fields with Types, or you can use the wpv-user shortcode to display the field value.

[wpv-user field="ref_cdmv_api_key"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/letting-cred-edit-custom-fields-created-by-other-plugins/

This support ticket is created vor 5 Jahren, 10 Monaten. 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)

Dieses Thema enthält 6 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von larryL vor 5 Jahren, 10 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1193364

We have serveral custom fields that are either coming from Gravity Forms OR custom fields added to the user profile. How can I add them as fields in both views and cred?

#1193785

We have some documentation available about managing 3rd-party fields with Forms:
https://toolset.com/documentation/user-guides/letting-cred-edit-custom-fields-created-by-other-plugins/
There are some limitations, and this approach works best with simple data fields like text, number, email, URL, and so forth. In Views, you can show hidden fields in the GUI by going to Toolset > Settings > Front-end Content and inserting the field slug in the Hidden Custom Fields section.

#1194506

I tried this but I still cannot locate the field I need. It's in user_meta.

Larry

#1194510

I clicked 'add' and it is added but when I goto a page and click the 'Fields and Views' button and click the non posts fields button they don't appear.

#1195045

May I log in to your wp-admin area and see how this is set up? If not, can you attach a copy of your database so I can take a look at the data structure?

#1195489

Okay I just logged in to wp-admin, then I went to Toolset > Custom Fields > User Fields tab, and clicked "User Field Control". I can see here that the ref_cdmv_api_key field is not managed by Types, so I suspect this is why you can't see it in the Views GUI. You can still display the value of the field with the wpv-user shortcode in a User View, like this:

[wpv-user field="ref_cdmv_api_key"]

As a test, I created this draft page with a User View:
versteckter Link

You can log in as an admin and view the draft post to see a list of Users and their API keys.

#1195752

My issue is resolved now. Thank you!