Blog

Add Last Modified Date To Blog Posts

Add Last Modified Date To Blog Posts

function wpll_date_updated( $content ) { $timeOfPublishing = get_the_time(‘U’); $timeOfUpdate = get_the_modified_time(‘U’); //compare “time of publishing” to “time of update” plust 12 hours (43200 seconds) to see if the modified date is more recent if ($timeOfUpdate >= $timeOfPublishing + 43200) { $updateDate = get_the_modified_time(‘F jS, Y’); $updateTime = get_the_modified_time(‘h:i a’); $modifiedDateOnPost .= ‘Modified on ‘. $updateDate…

WordPress Custom Fields – Adding Custom Meta Data To Posts

WordPress Custom Fields – Adding Custom Meta Data To Posts

Output A Single Custom Field Weather when I wrote this: Output Multiple Custom Fields As A List Cost: Friendliness: Cleanliness: CSS From The Video Tutorial .important-details { margin-bottom: 10px; background-color: #fff; content: “”; display: table; clear: both; padding: 10px; } .important-details li { float: left; list-style: none; margin-right: 20px; }