Skip Navigation

[Resolved] Link First and Last Name to Author Archieve inside the Loop

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

Problem:
How to build post author link using author's firstname and lastname

Solution:
You should use view's shortcode [wpv-post-author format='url'] in order to get post author URL and build the custom post author link dynamically.

For example:

<a href="[wpv-post-author format='url'] "> [wpv-post-author meta="user_firstname" format="meta"] [wpv-post-author meta="user_lastname" format="meta"] </a>

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/link-first-and-last-name-to-author-archieve-inside-the-loop/#post-624502

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-154504

This support ticket is created 6 years, 8 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by theW 6 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#624434
Link.png

Hello
I have a "My Projects Page", where the current logged in user sees all the Custom Posts they have created.
This is a Loop that displays basic info, one of the info being the Author, which is always the Current logged in user.
So I have this code here in a View:

<td style="width:25%">[wpv-post-link]<br>
Author: [wpv-post-author meta="user_firstname" format="meta"] [wpv-post-author meta="user_lastname" format="meta"]<br>  
Author: [wpv-post-author format="meta" meta="nickname" format="link"]  
</td>

I am trying to:

Make the FIRST and LAST NAME Link as ONE to the WP Author Archive Page.
Just like the "nickname" bellow, which works perfectly.

Link to a page where the issue can be seen:
hidden link

I expected to see:
FIRST and LAST NAME Linking as ONE to the WP Author Archive Page.

Instead, I got:
No link..

When I add: "format="link"
To the Short Codes:

Author: [wpv-post-author meta="user_firstname" format="meta" "format="link"] [wpv-post-author meta="user_lastname" format="meta" "format="link"]

The last name becomes first name and they both link seperatly.

Please let me know what am I doing wrong.

Thank you!

#624502

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To build the post author link - you should use the following code:

<a href="[wpv-post-author format='url'] "> [wpv-post-author meta="user_firstname" format="meta"] [wpv-post-author meta="user_lastname" format="meta"] </a>
#624731

Oh great! Thank you so much Minesh