Hello!
I would like to add the date the post on top of the derivation of <?php nm_list_recent(); ?>.
As far as I can understand, it is necessary to edit function
Sorry for my English
I would like to add the date the post on top of the derivation of <?php nm_list_recent(); ?>.
As far as I can understand, it is necessary to edit function
Code:
function nm_list_recent() {
global $NMPAGEURL, $NMRECENTPOSTS;
if ($NMPAGEURL == '') return;
$posts = nm_get_posts();
if (!empty($posts)) {
echo '<ul class="nm_recent">',PHP_EOL;
$posts = array_slice($posts, 0, $NMRECENTPOSTS, true);
foreach ($posts as $post) {
$url = nm_get_url('post') . $post->slug;
$title = stripslashes($post->title);
echo ' <li><span>this a date</span><br/><a href="',$url,'">',$title,'</a></li>',PHP_EOL;
}
echo '</ul>',PHP_EOL;
}
}