Hello!
I have a view that shows me a list of a custom type, I need that list to output the user who created that custom type and the phone number that is in their registry. How can I do that?
I only can display this about author.
[wpv-post-author format="meta" meta="user_email"]
[wpv-post-author format="meta" meta="description"]
view is:
Listado bonos administrador
thanks
Hello, I assume you want to display information from the author's User custom fields, and those custom fields are created in Types? If that is correct, you can use the Types User field shortcode to display custom field values from the current post's author:
[types usermeta="phone-field-slug" user_is_author="true"][/types]
We have documentation for the types usermeta shortcode available here:
https://toolset.com/documentation/customizing-sites-using-php/functions/#phone
Click "+More" to display examples for each field type, including information about User fields.
Hi Cristhian
Yes, it is included as a field in the user.
<td>[types usermeta="telefono_movil" user_is_author="true"][/types]</td>
However when you include it in the view, nothing happens.
What I can be doing wrong?
I'm not sure, but I can take a look. Please show me where to find this View on the front-end of the site and I will check it out.
You can find in view called 'listado-bonos-administrador'
thanks
I am not sure I understand the problem. You said this about the Types usermeta shortcode:
However when you include it in the view, nothing happens.
What do you mean "nothing happens"? I see something happen, I see the field value appear, just as expected. Screenshots attached. I added some test text in the view loop to help identify the field value. There is no doubt, the shortcode outputs some values in the table between the test texts. Can you explain the problem in more detail? Is there a problem when logged in as a different User? Is there a problem when some specific search filters are used in the View?
My issue is resolved now. Thank you!