Skip Navigation

[Resolved] Display native WP info from the Author for each post in a View

This thread is resolved. Here is a description of the problem and solution.

Problem:
Display wordpress native user fields (name, website and e-mail) of the post's author in a View.

Solution:
You need to select Post Author field >> Author metadata >> Author email. Screenshot here:
https://d7j863fr5jhrr.cloudfront.net/wp-content/uploads/2017/02/495076-Post_Author.png?x71388

This support ticket is created 7 years, 2 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by talitaL 7 years, 1 month ago.

Assisted by: Noman.

Author
Posts
#494241

I have a view with custom posts of several authors.

I'd like to display, after each post, the name, website and e-mail of the post's autor.
These fields are native from WordPress..

So, the name I can get with shortcode [wpv-post-author];

And how can I get his respective url (site) and e-mail?
These options are not available on suggestions of the 'fields and views list'.

#494381

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

User Data fields.png

Hi,

Thank you for getting in touch with us.

User email field and user website (url) field are under User Data fields (see attached screenshots)

Shortcodes are here:

Email: [wpv-user field="user_email"]
Website: [wpv-user field="user_url"]

I hope it helps.
Thank you

#494612

Ok! It works!

I tried these before and it was displaying my own e-mail instead of the author.
Maybe a bug because I had to change its role a few times to tests...

Now I registered a new user, and this code works.

Thank you.

#494718
help_author-data.jpg

I'm sorry... I realized now what is happening.

These fields you suggest, display data from the current logged user.... 🙁
If nobody is logged, they became empty..

I need display the author's data of the post in loop.

See link here: hidden link
It's in the accordion contact aba, for each post. (Author's name is correct, but e-mail and website aren't).

#494951

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

To debug this issue I will need to take a look at your setup. So I need to request temporary access (WP-Admin) to your staging site where the problem has been replicated in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please add the Links to the [View] Edit Screen and [Page] Edit Screen where you have inserted this View.

Looking forward to help you.
Thank you

#495076

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Post Author.png

Hello,

You need to select Post Author field >> Author metadata >> Author email (see attached screenshot)

I have added Post Author email and url(website) fields in this View: hidden link

I hope it help.
Thank you

#495088

Ok! It works perfectly! 🙂
Thank you!!!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.