The following instructions come from http://projects.radgeek.com/2008/02/04/feedwordpress-0992-author-remapping-and-uri-bug-fix/#comment-20080303075424
The method used below, to edit feedwordpress.php, could probably be replaced with an additional file, stored in the plugins path, that separately adds the functionality below.
Download the software from http://www.semiologic.com/software/publishing/autotag/
Drop the extract-terms.php into the feedwordpress dir.
Edit the feedwordpress.php
Do an include somewhere at the top
include_once dirname(FILE). ‘/extract-terms.php’;
Comment the_content filters I dont write my own posts, just feedwordpress posts
// add_filter('the_content', 'feedwordpress_preserve_syndicated_content', -10000);
// add_filter('the_content', 'feedwordpress_restore_syndicated_content', 10000);
add an action below the fwp_publish_post_hook action
add_action('publish_post', 'autotag_entry');
add the autotag function below the fwp_publish_post_hook function around line 1630
function autotag_entry($post_id)
{
$post = get_post($post_id);
$terms = get_the_post_terms($post);
if ( $terms )
{
$tags = ”;
foreach ( $terms as $term )
{
$tags .= ( $tags ? ‘, ‘ : ” ) . $term;
}
wp_set_post_tags($post_id, $tags, true);
}
}
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |