Skip Navigation

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

This support ticket is created hace 2 años, 11 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por chrisH-10 hace 2 años, 11 meses.

Asistido por: Waqar.

Autor
Mensajes
#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?
enlace oculto

#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:
enlace oculto

#2252307

Perfect. Thank you!