Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Adriano Gaved

User meta columns in related Pod screen

I am customizing a screen of a Pod that I made named “Registrations”
Every Registration is related to a User and I see how I can add user data to the screen.
I coulnd’t see how to show user metadata, though. Is it possible? How?
I found a ticket in GIT where it seems it is available only for ACF and not for Pods: is this the case?
If so, is there a workaround with some code development? The site runs on a theme of mine and I can hack some code, if not utterly complicated.
Many thanks in advance

4 years, 5 months ago
Stefan van den Dungen Gronovius

This is unfortunately not possible with the GUI of our columns.
But you can manage to do that by using the following hook

You can check the column for instanceof ACA\Pods\Column
Next, you could check the specific meta key and fetch the user meta data yourself by using get_user_meta( $id, 'yourcustomfieldkey', true);
The ID you want to use is the value of the column in that case.

Let me know if you have any further questions.

4 years, 5 months ago

You must be logged in to reply to this topic.