Last active
December 17, 2015 11:29
-
-
Save zoerooney/5602716 to your computer and use it in GitHub Desktop.
Rolling lead time display using WordPress.
Tutorial: http://zoerooney.com/blog/tutorials/add-a-rolling-date-in-wordpress/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// create a variable, use it to get the lead time digit from an ACF custom field | |
$lead_time = get_field('lead_time'); | |
// then display the date relative to that lead time | |
echo date('F Y', strtotime('+'.$lead_time.' weeks')); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment