FeedWordPress Plugin Customization
1) Download and installed FeedWordPress
Version 2009.0707
2) Require to upgrade of MagpieRSS after activating plugin (normal).
3) Syndicated a test feed (http://thefinance.sg) and found a whole long list of unwanted code appended to each post. After testing on other feeds, realized that the rest are ok and the problem is only on my feed.
4) Increased the excerpt length of the feed by editing ../wp-content/plugins/feedwordpress/syndicatedpost.class.php (L74 and L75)
Change the code to:
if (strlen($excerpt) > 503) :
$excerpt = substr($excerpt,0,500).'...';
5)
How do I make the permalinks for post titles open in a new browser window? or
[Private]
Note that since I will be making changes to index.php, archive.php and search.php in the theme folder, I will have to make sure I modify the files after each theme upgrade.
For thesis theme, I have to modify custom_functions.php. Not going to do this because the general consensus is that opening in a new window is bad.
Beware of Opening Links in a New Window [Usability and Information Architecture]
6) How to make feedwordpress retrieve only a short excerpt and not the entire post? Feedwordpress : truncate the article
Finally found the solution. Look for the file syndicatedpost.class.php and insert the code below above line 66.
$content = substr($content,0,500).'...';
It is basically similar to to the excerpt code, it will retrieve from 0 - 500 words and post it into the content. Hence my code look something like this now.
$content = $this->item['description'];
endif;
$content = substr($content,0,500).'...';
$this->post['post_content'] = apply_filters('syndicated_item_content', $content, $this);
http://wordpress.org/extend/plugins/feedwordpress/
7) Point Permalinks to the local copy on this website.
Go to Syndication -> Posts -> Under 'Links' -> point to local copy on this website
8) Add a 'Read full article' at the end of the single syndicated post
Put this signature code to Thesis Theme, custom_functions.php
// Signature -> http://diythemes.com/forums/showthread.php?p=74152#post74152
function my_signature() {
if (is_single() && is_syndicated()) { ?>
<p><a href="<?php the_syndication_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><br/>Read the full article →</a></p>
<? }
}
add_action ('thesis_hook_after_post' , 'my_signature');
9) Next post permalink is 'screwed'
Auto-resolved. I guess is because of point 7 - Point Permalinks to the local copy on this website.
Thesis Theme Customization