Skip Navigation

[Resolved] Displaying list of authors from Co-Authors in Content Template

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
- 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 2 replies, has 2 voices.

Last updated by michaelS-53 1 year, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2549035

Hello! I'm using the Co-Authors Plus plugin to add multiple authors to some posts on my site. However, I have not configured my post templates to actually DISPLAY the names. I've seen some other threads here, but they were between 4–8 years old, so it's likely advice has changed since then.

Right now, most of my templates use [wpv-post-author format="link"] to display the author and link to their author page. Looking at other support threads, I'm guessing I'd still need to create a shortcode with Co-Authors Plus' code, and swap to this shortcode.

If that's still the case, my main problem is that I don't know how! I tried following some basic advice about creating a shortcode, using Co-Author's tags (see here: hidden link), but I immediately got a "critical error" when I added it to my functions.php, so clearly I didn't do it right.

Here's a page as an example - I don't care about the footer area, I'm only interested in updating the byline after "posted by" to list all attached authors with links to their post listings:
hidden link

Thank you!

#2549297

Hello,

I have tried it in a fresh WP installation + the latest version of Toolset plugin, it is possible with a custom shortcode.

See below test site:
Login URL:
hidden link

1) Add a custom code snippet:
hidden link
create a custom shortcode:

add_shortcode('wpv-post-coauthors', 'wpv_post_coauthors');
function wpv_post_coauthors() {
  return coauthors_posts_links(null, null, null, null, false);
}

2) Create a post, display above shortcode:
[wpv-post-coauthors]

Test it in frontend:
hidden link

It works fine.

For your reference.

#2549535

This is perfect! Thank you so much. I got it set up on my site literally while I had breakfast. I didn't actually realize I could make shortcodes inside Toolset, so I learned a lot already.

As always, I appreciate how clear you are in your direction. Have a wonderful week!