PHP HTML CSS JS
Click to copy

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

<?php
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(); ?>
	</span>
<?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.

Labs

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.