With this function I was able to display post author e-mail in post edit screen. Still don’t know how to make it work with custom meta field but I think Im closer now.
1 2 3 4 5 6 7 8 | function myprefix_edit_form_after_title() { global $post; $author_id=$post->post_author; $authord = get_the_author_meta( 'user_email', $author_id); echo $authord; } add_action( 'edit_form_after_title', 'myprefix_edit_form_after_title' ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.