Sitemap
global $wpdb;
$allposts = $wpdb->get_results(”SELECT * FROM wp_posts WHERE post_type=’post’ AND post_status=’publish’ ORDER BY post_date DESC”);
foreach($allposts as $ap) {
$perma = get_permalink($ap->ID);
print “” . $ap->post_title . “
“;
}
?>
Comments Off