Get Recent Posts Function calls up posts scheduled in the future
-
OK, guys, I need some help.
Look at thewhineseller.com. See the Recent Posts over in the top right of the navbar? It keeps showing posts that are scheduled to post in the future instead of just the posts that have recently posted. (You can see this in action since the topmost post isn’t due to post for many days now.)
Code I’m using is:
<?php $number_recents_posts = 7;//Can be how much you want $recent_posts = wp_get_recent_posts( $number_recents_posts ); foreach($recent_posts as $post){ echo ' <li><a>' . $post["post_title"].'</a> </li> '; } ?>
How would you recommend I fix this? I’m hoping I just left a line out of the code like a doofus.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Get Recent Posts Function calls up posts scheduled in the future’ is closed to new replies.