Im looking for a workpress plugin that will create tags automatically based on content.
Thanks.
Thanks.
$lines = @file ( "http://www.mydomain/tags.txt" );
if (count ( $lines ) > 0) {
foreach ( $lines as $line ) {
$words = explode ( "|", $line );
$tag = $words [0];
foreach ( $words as $word ) {
if (stripos ( $post ['post_content'], trim ( $word ) ) !== false) {
$post ['categories'] [] = $tag;
}
}
}
}

Comment