Use setup_postdata instead of deprecated start_wp. fixes #3188
git-svn-id: https://develop.svn.wordpress.org/trunk@6077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a3a3332714
commit
c373b9c880
@ -193,7 +193,7 @@ print '<?xml version="1.0" encoding="' . get_bloginfo('charset') . '"?' . ">\n";
|
||||
$where = "WHERE ID IN (".join(',', $next_posts).")";
|
||||
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
|
||||
foreach ($posts as $post) {
|
||||
start_wp(); ?>
|
||||
setup_postdata($post); ?>
|
||||
<item>
|
||||
<title><?php the_title_rss() ?></title>
|
||||
<link><?php the_permalink_rss() ?></link>
|
||||
|
Loading…
Reference in New Issue
Block a user