Hi
I need some help with an old wordpress plugin called AutoNewsFeeder. It looks like the original developer never updated it and somewhere along the way wordpress changed their database structure.
The plugin grabs news feeds and allows them to be updated to your blog. This still works but it puts everything into the uncategorized category. I am trying to figure out how to correct it so that it knows the correct category to place the post.
The plugin asks for the feed to be entered followed by the pipe symbol "|" then the category name. I think the section of code below is where it splits out the category name into a variable called $ctr.
$rss_urls = array_map('trim', explode("\n", $options['rss_urls']));
$Num_Sum = mt_rand($options['per_post']['min'], $options['per_post']['max']);
addtolog("Will try to post $Num_Sum summaries.");
$links = array();
for($ctr=0; $ctr<count($rss_urls);$ctr++)
{
$rss_urls[$ctr] = array_map('trim', explode("|", $rss_urls[$ctr]));
I don't quite understand what happens after that and how to get wordpress to understand the category I want the post to appear in.
If you are familiar with wordpress perhaps you can help me.
I have included the full plugin here:
box.net/shared/6jo1x4m8eb
Any help would be greatly appreciated.
(Note: I understand that there are similar tools out there but this one is free and has some other advantages over similar plugins.)