Loading...
 
Skip to main content

Features / Usability


Aw: last_blog_posts - how to show only entries of last 2 months ?

So, list_posts in tikilib.php might be a place to start.
But I cant figure out the SQL statement correctly.

Copy to clipboard
$query = "select * from `tiki_blog_posts` $mid order by ".$this->convert_sortmode($sort_mode);


should be it, but how to calc the date difference ?