@rizaardiyanto Anything wrong in my above code. still it is not showing job_title. it displays everything except job_title.
Hi @rizaardiyanto
Thanks for the quick response. Yes, this field is not checked.
Also, FYI, I’m not printing the author using the Author box or shortcode to print the job title. Instead, I’m using like this.
$authorid = get_the_author_meta('ID', get_post_field('post_author', $post->ID));
$author_job_title = get_the_author_meta('job_title', $authorid);
'<p>' . $author_job_title .'</p>'
The same way, first_name, last_name, user_url, user_email works. But not job_title.
For example:
$first_name = get_the_author_meta('first_name', $authorid);
'<p>' . $first_name .'</p>'