[Gelöst] Layouts plugin: Author 'description' not appearing on Author Archive page
This support ticket is created vor 1 Jahr, 9 Monate. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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.
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