Skip Navigation

[Resuelto] How to display Types User Fields in Author Archive.

This support ticket is created hace 6 años, 8 meses. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 respuesta, has 2 mensajes.

Last updated by Luo Yang hace 6 años, 8 meses.

Assisted by: Luo Yang.

Autor
Mensajes
#554987
User Field Group.png
Author Page.png

Tell us what you are trying to do?
Create a profile page for authors.

What is the link to your site?
hidden link

So I've created a "WordPress Archive" using toolset for Author Archives but nothing displays on the page.

i.e. on hidden link you only see posts, none of the Authors info like phone, email, name, courses.

You can see on attached image "User Field Group.png" that I have user fields for the author.

LOOP OUTPUT EDITOR FOR AUTHOR ARCHIVE
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="1" pad="true">
[wpv-item index=1]
<div class="row ">
<div class="col-sm-12">[wpv-post-body view_template="Loop item in Adjunct Author Archive"]</div>
</div>
[wpv-item index=other]
<div class="col-sm-12">[wpv-post-body view_template="Loop item in Adjunct Author Archive"]</div>
[wpv-item index=pad]
<div class="col-sm-12"></div>
[wpv-item index=pad-last]
<div class="col-sm-12"></div>
</div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

LOOP ITEM IN ADJUNCT AUTHOR ARCHIVE

[wpv-user field="user_firstname"]
[wpv-user field="user_lastname"]
[wpv-user field="user_email"]
[types usermeta='types_phone'][/types]
[types usermeta='types_courses-qualified-to-teach'][/types]
[types usermeta='types_relevant-degrees'][/types]
[types usermeta='types_campuses'][/types]
[types usermeta='types_dept-program-chair-references'][/types]

But as you can see on
hidden link and the attached image "Author Page.png" there is none of the fields for the user/author being displayed. The author realize is me and I have many posts.

How can I get the info to display?

#555053

Dear Oliver,

The shortcode [wpv-user] works on users loop, for example the view for listing users.
In your case I suggest you try with another shortcode [wpv-post-author]
https://toolset.com/documentation/views-shortcodes/#wpv-post-author

For example:
[wpv-post-author format="meta" meta="user_firstname"]

For those custom user fields created with Types plugin, please try to specific the id attribute, for example:
[types usermeta='types_relevant-degrees' id='[wpv-post-author format="meta" meta="ID"]'][/types]

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