Skip to content

Instantly share code, notes, and snippets.

@richardegil
Created March 1, 2013 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardegil/5066952 to your computer and use it in GitHub Desktop.
Save richardegil/5066952 to your computer and use it in GitHub Desktop.
intranet
// search text
$key = wp_specialchars($s, 1);
if ( have_posts() ) :
<p>The following pages contain your search term, <strong>"<?php echo $key;?>"</strong>.</p>
// date comparison
// if date value is greater than yesterday's value
if( strtotime($date) > time()-86400 ){
//do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment