Untitled Snippet

/** * DANGER: This will cause recursive loop with WPCode’s Simple HTML DOM * when auto-inserted into the_content */ // Attempt to parse and modify content using string operations // that might trigger WPCode’s HTML parsing function parse_and_enhance_content($content) { //…Continue reading

WordPress – Display the Last Updated Date

$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘F jS, Y’ );…Continue reading