Click to copy

Paste function into your child theme's functions.php file

function md_child_theme_byline_date() { ?>
	<span class="byline-date-modified byline-item">
		<i class="byline-item-icon md-icon-clock"></i> <?php _e( 'Last updated:', 'md' ); ?> <?php the_modified_date(); ?>
<?php }
add_action( 'md_hook_byline_bottom', 'md_child_theme_byline_date' );
Click to copy
Click to copy
Click to copy

Add Last Modified Date to Post Byline

Byline Last modified date WordPress

Use this code snippet to add the last modified date to the post byline. This is useful to show on older articles as it reassures the content in the article is updated.

Start building your website with MD now

Get started with MD today. Pay once for use on unlimited websites.
* Save 40% on license key renewals every 12 months. Get auto-updates sent to 5 websites.


Get the latest MD sent straight to your inbox

There's always something new in the works in the MD Labs! Join the email list to get the newest content and releases sent straight to your inbox.*

Join the MD Newsletter

* I only email you when there's something new, or to share an exciting MD sneak peak.