PHP code for wordpress to show Published Updated Date, Author Name picture

PHP code for wordpress to show “Published Date”, “Updated Date”, “Author Name” and “Author picture” for wordpress pages and post.

You can place this code anywhere inside your WordPress theme files where you want to display this information. For example you can insert it

  • single.php
  • content.php
  • sidebar.php
  • Insert with the help of any plugin like ad inserter plugin etc.

Output

Published Date: September 25, 2019

Last Updated: November 5, 2022

Author: Prof. Fazal Rehman Shamil

Author Avatar: