I need to merge the following two functions, but I can't seem to get the syntax right:
One:
<?php= time() > strtotime( $var = get_post_meta($post->ID, 'hub_expiry-date', true) ) ? 'expired' : '' ?>
Two:
<?php
$var = get_post_meta($post->ID, 'hub_expiry-date', true); if ($var == '') { echo ""; } else { echo 'expired'; }
?>
What is the correct way of merging these?
Thanks Zach