With this small ShortCode you can compare the Views Post Date (returning “U” Timestamp) to any date in past or future.
It’s useful as example if you want to display a “NEW” Tag on posts that are not older than [given date or days]
Function:
function timestamp_in_past_shortcode($atts) { $timestamp_in_past = strtotime('-1 Week');//here you can use any value return $timestamp; } add_shortcode('date-in-past', 'timestamp_in_past_shortcode');
Then evaluate the above ShortCode against the Views ShortCode
1453802101