Skip Navigation

[Resolved] telephone number of the author of the publication

This support ticket is created 3 years, 10 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
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)

This topic contains 6 replies, has 2 voices.

Last updated by avansisI-2 3 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1899617

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

#1900271

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.

#1901013

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?

#1901377

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.

#1901399

You can find in view called 'listado-bonos-administrador'

thanks

#1902875
Screen Shot 2021-01-12 at 11.23.45 AM.png

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?

#1902913

My issue is resolved now. Thank you!