Recent Posts Including Pages
-
My sidebar does a call up for Recent Posts. Since the upgrade to 2.1, these now include Pages (if Pages have been added). Any way to exclude Pages from this query? I looked at the Codex, but could not quite figure it out. From what I can tell… Here is the code that pulls up the Recent Posts in my sidebar.php.
\if ( $recentposts = $wpdb->get_results(“SELECT ID, post_title FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_date_gmt < ‘$today’ ORDER BY post_date DESC LIMIT 5”)):
\
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Recent Posts Including Pages’ is closed to new replies.