[category] => VALUE
[guid] => URL
[description] => POST DESCRIPTION
[content] => Array
(
[encoded] => <p><a class="..." href="POST URL" title="..."><img class="..." src="POST THUMBNAIL" width="..." height="..." alt="IMG ALT TXT" /></a>
</p>
<p>THE POST CONTENT</p>...var getFeed = function(feed) {
var url = feed;
url += "&callback=parse_res"
var scripttag = document.createElement("script");
scripttag.setAttribute("type","text/javascript");
scripttag.setAttribute("charset","utf-8");
scripttag.setAttribute("src",url);
document.getElementsByTagName("body")[0].appendChild(scripttag);
}
var parse_res = function(data) {
var entries = data.responseData.feed.entries;
var container = document.getElementById("rssFeed");
var list = document.createElement("ul");
while (container.hasChildNodes()) {
container.removeChild(container.lastChild);
}
for (var i=0; i<entries.length; i++){
var listItem = document.createElement("li");
var title = entries[i].title;
// create the headline link
var link = document.createElement("a");
link.setAttribute("href", entries[i].link);
link.setAttribute("target","_blank");
var text = document.createTextNode(title);
link.appendChild(text);
// insert the markup
listItem.appendChild(link);
list.appendChild(listItem);
container.appendChild(list);
}
}
<?php
define('WP_USE_THEMES', false);
require('blog/wp-blog-header.php');
?>
<?php
query_posts('showposts=2&cat=-112'); if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$count++;
$image_thumb = '';
if(has_post_thumbnail(get_the_ID(), 'blog_ft'))
{
$image_id = get_post_thumbnail_id(get_the_ID());
$image_thumb = wp_get_attachment_image_src($image_id, 'blog_ft', true);
}
?>
<dt>
<?php
if(!empty($image_thumb))
{
?>
<img class="blogimg" src="<?php echo $image_thumb[0]; ?>" alt="" />
<?php
} else {
?>
<img class="blogimg" src="www.wesleypicotte.com/blog/blog.png" alt="" />
<?php } ?>
<br />
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</dt>
<dd>
<?php
$content = get_the_content();
$content = strip_tags($content);
echo substr($content, 0, 100);
?>
<br />
<br />
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" style="font-size: 12px;">Read Article </a>
</dd>
<?php endwhile; ?>
<?php else : ?>
Sorry, no posts were found.
<?php endif; ?>
<?php endif; wp_reset_query(); ?> Thanks for taking a look.
The feed is public on my current site. Site address is www.wesleypicotte.com. The blog address, which is the source of the feed, is www.wesleypicotte.com/blog. This site proper is ModX, /blog is a discreet instance of Wordpress.
The feed is a feedburner feed and its address is http://feeds.feedburner.com/Wesleypicotte.