Don't show blog-pages with date set in the future

Submitted by krebbi - 3 years ago

If you want to write blog-entrys in advance, the blog-index template from the pagelist, will show them. to avoid this, simply add the given code below into your blog index template after the page-iteration starts.

$now = strtotime(now);
$dateuts = strtotime($cobj->getCollectionDatePublic());
if($now<$dateuts) continue;
Stats Categories Tags
comments powered by Disqus