Get 5 latest post…excluding today
-
Is there any easy way to accomplish this? The code below is my start but isn’t working as I can’t seem to grab the post data.
$catposts = get_posts('category=73'."&numberposts=5"); foreach($catposts as $single): $postday = the_date('d', '', '', FALSE); if($postday != $current_day) { $result .= '<li><a href='; $result.=get_permalink($single->ID).'>'.$single->post_title.'</a><br />'; $result .= $single->the_excerpt."\n".'</li>'; } endforeach;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Get 5 latest post…excluding today’ is closed to new replies.