Skip Navigation

[Resolved] Layouts plugin: Author 'description' not appearing on Author Archive page

This support ticket is created 3 years 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
- 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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by chrisH-10 2 years, 12 months ago.

Assisted by: Waqar.

Author
Posts
#2247257

Tell us what you are trying to do?
This site uses the old Layouts plugin! Trying to show an author's bio on their blog archive page (not other archives).

Is there any documentation that you are following?
Standard docs and I found the following ticket. https://toolset.com/forums/topic/author-page-single/
My attempts are essentially this:
<!--
[wpv-post-author format="meta" meta="description"]
[wpv-user field="description" id="[wpv-post-author format='meta' meta='ID']"]
[wpv-user field="description" id="[get_author_id_in_archive]"]
[get_author_id_in_archive]
-->
Where [wpv-post-author format='meta' meta='ID'] results in a userID that is not the author while [get_author_id_in_archive] returns 0.

What is the link to your site?
hidden link

#2248533

Hi,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot this, I'll need to see exactly how this author archive is set up in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.

regards,
Waqar

#2249563

Thank you for sharing the admin access.

I was able to make this work using the slightly updated code for the custom shortcodes.

In your existing custom snippet named "get_author_id_in_archive", you'll find these updated shortcodes:


// get author's ID shortcode
function get_author_id_in_archive_func($atts) {
  return get_the_author_meta('ID');
}
add_shortcode("get-author-id-in-archive", "get_author_id_in_archive_func");

// get author's Bio/Description shortcode
function get_author_desc_in_archive_func($atts) {
  return get_the_author_meta('description');
}
add_shortcode("get-author-desc-in-archive", "get_author_desc_in_archive_func");

The first shortcode [get-author-id-in-archive] will return the author's ID while the second shortcode [get-author-desc-in-archive] will return the author's bio/description, on the author archive's page.

You can see these shortcodes working at:
hidden link

#2252307

Perfect. Thank you!