Return to Snippet

Revision: 5217
at February 20, 2008 00:30 by dwest


Initial Code
***BEFORE LOOP
<?php
$expirationtime = get_post_custom_values('expiration');
  if (is_array($expirationtime)) {
    $expirestring = implode($expirationtime);
  }
$secondsbetween = strtotime($expirestring)-time();
  if ( $secondsbetween > 0 ) {
?>
***LOOP HERE***

***AFTER LOOP***
<?php 
} 
?>

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress Snippet to set Post Expiration time and date

Initial Tags
date, post, wordpress

Initial Language
PHP