Skip Navigation

[Résolu] How to display Types User Fields in Author Archive.

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.

This topic contains 1 réponse, has 2 voix.

Last updated by Luo Yang Il y a 4 années et 1 mois.

Assigned support staff: Luo Yang.

Auteur
Publications
#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

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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]