If I’m understanding this correctly, you can use this to show a specific users bio/description on a page https://codex.wordpress.org/Function_Reference/the_author_meta
Hope that helps.
Thread Starter
JMunce
(@jmunce)
Except I don’t want to display the page author (I am able to do that already).
I want to display the bio for A SPECIFIED user.
eg On Page1, all users see bio of Walt Whitman (who did not write the page but does have a profile on the website).
the_author_meta() (and get_the_author_meta()) takes an optional second argument, the ID of the desired user:
<?php the_author_meta( 'user_description', 20 ); ?>
You could find the ID by a couple of different methods. One way to do it would be to go to Dashboard > Users > All Users, hover over the desired user, click “Edit”, and check the URL. You’ll see something like this: wp-admin/user-edit.php?user_id=2. The user_id is the ID of the user.
Thread Starter
JMunce
(@jmunce)
Thanks stephencottontail. That worked great. And I think from your name I’ve benefited from your code before too!