As you can see this uses the_author_meta instead of get_the_author_meta. The $post global and the $post->post_author reference would strictly speaking not even be needed as they’re called from the global otherwise within the function, but this might prevent issues with retrieving the wrong user contact fields.
That’s it! Now you can add and remove user contact fields as you wish. You can do this in your theme’s functions.php or in a plugin, be sure to add the isset code around it to prevent notices though!
Share it!Tweet
Subscribe and never miss a post!Subscribe to the free newsletter now for weekly updates. (No spam, we promise)
Name:
Email:
Subscribe now »Other posts you may like:View the Original article
0 comments:
Post a Comment