Hello. My name's Kate. I love Linux, WordPress - own a WordPress dedicated design studio, a beginner entrepreneur who co-founded Asia software company. This is where i blog about Linux, WordPress, daily life and other interesting stuff
Status: available

You are on the Nineteen Labs » Modify WordPress RSS2 Preview article.

Modify WordPress RSS2 Preview

I made an aggregator site weeks a go. One of the aggregated site got lower expectation. I think it’s because anyone prefer to read from this aggregator site than go to a “real” site. The aggreator used RSS tech, i should modify WordPress RSS. The aggregator site only read the title and author. How about the content? The idea is to make people go to a “real” site, that’s why i don’t need the content shows in RSS.

I choose to modify RSS2 because it is suitable with the theme.
WordPress RSS2 file located inside wp-includes folder. Duplicate feed-rss2.php to avoid any mistakes in the future, you can use the duplicate file is something goes wrong. Open feed-rss2.php with notepad or other editors.

We don’t need the content, find this line :

<guid isPermaLink="false"><?php the_guid(); ?></guid>


You’ll get the content xml code.

<?php if (get_option('rss_use_excerpt')) : ?>
<description>
<![CDATA[<?php the_excerpt_rss() ?>]]>
</description>
<?php else : ?>
<description>
<![CDATA[<?php the_excerpt_rss() ?>]]>
</description>
<?php if ( strlen( $post->post_content ) > 0 ) : ?>
<content:encoded>
<![CDATA[<?php the_content() ?>]]>
</content:encoded>
<?php else : ?>
<content:encoded>
<![CDATA[<?php the_excerpt_rss() ?>]]>
</content:encoded>
<?php endif; ?>
<?php endif; ?>
<wfw:commentRss>
<?php echo comments_rss(); ?>
</wfw:commentRss>

Delete all. Save and upload. Test the new RSS2 feed by clicking the link from theme
_________________________________________________________________
Although lots of ppc providers are there, but Google AdWords has been one of the major network operators since 2007. You can earn buks of money if you are good at search engine optimization. Lowest costs per click, often labeled as CPC, differ depending on the advertising competition and the level of competition for a picky domain names or phrases which we also keyword list — with some CPCs as small as US$0.01. to increase ppc, you have to do lots of things for instance, email marketing.

Share : These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • SphereIt
  • BlinkList
  • Reddit
  • StumbleUpon

Leave a Reply

This site powered : WordPress. Made with PC (sorry, MAC), Coffee and Tofu