Hallo,
ich habe mit Visual Studio eine Windows Phone App für meinen Blog erstellt. Ein Wordpress Plugin von Microsoft erstellt einen Newsfeed "lesbar" für Windows Phone.
http://blog.r23.de/windows-phone-8-app-fuer-blog-r23-de/
soweit so gut.
Der Feed wird zwar in dem Windows Phone Emulator dargestellt aber die Bilder fehlen:
PHP
//get recent post feed
function load_recent_feed()
{
$args = array(
'numberposts' => 10,
'offset' => 0,
'category' => '',
'orderby' => 'post_date',
'order' => 'DESC',
'include' => '',
'exclude' => '',
'meta_key' => '',
'meta_value' => '',
'post_type' => 'post',
'post_mime_type' => '',
'post_parent' => '',
'post_status' => 'publish' );
$recent_posts = get_posts( $args );
echo '<?xml version="1.0" encoding="UTF-8"?>';
?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">
<channel>
<title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
<link><?php bloginfo_rss('url') ?></link>
<atom:link href="<?php self_link() ?>" rel="self" type="application/rss+xml" />
<description><?php bloginfo_rss("description") ?></description>
<?php foreach( $recent_posts as $post ){ ?>
<item>
<title><?php $title=htmlspecialchars($post->post_title); echo $title; ?></title>
<author><?php $user_info = get_userdata($post->post_author);echo $user_info->display_name; ?></author>
<description><![CDATA[<?php echo $post->post_content ?>]]></description>
<tags><?php $category = get_the_category($post->ID); echo $category[0]->cat_name; ?></tags>
<id><?php echo $post->ID ?></id>
<pubDate><?php echo formatDateAndTime($post->post_modified);?></pubDate>
</item>
<?php } ?>
</channel>
</rss>
<?php }
Alles anzeigen
Kann man dies - wie - für Thumbnails erweitern?
Über einen Erfahrungsaustausch über - Windows Phone App - würde ich mich auch freuen.
lg
ralf