02.24.08
wp-o-matic quick & dirty duplicate post fix
I’m getting a lot of duplicate posts using wp-o-matic and if you are reading this, you probably have the same problem.
Instead of fixing wp-o-matic (that’s the developer’s job) I just changed my local wordpress to ignore posts with the same title.
Here is how it works :
- Open up wp-includes/post.php in your favorite editor
- at approx line 703 you will find the following line :
if ($post_name_check || in_array($post_name, $wp_rewrite->feeds) ) { - After this insert a new line of code :
return 0; - save (you did make a backup, right?).
- All done.
02.21.08
wp-o-matic cron install problem
WP-o-Matic is a cool auto-blogging plugin for wordpress.
After installation you’ll have to change cron.php if you want to use automatic feed fetching via crontab.
- take note of the code wp-o-matic will give you on installation.
- open cron.php in your favorite editor
- add this piece of code after the <?php opening tag :
if ($argc > 0)
{
for ($i=1;$i < $argc;$i++)
{
parse_str($argv[$i],$tmp);
$_REQUEST = array_merge($_REQUEST, $tmp);
}
}
- fire up crontab -e and add something like the following line to it :
*/20 * * * * php /DIR_TO_WP/wp-content/plugins/wp-o-matic/cron.php code=YOURCODEchange DIR_TO_WP with you path to wordpress and YOURCODE with the code you noted in step 1
- Save the file and cron will run your fetcher every 20 minutes.
- You’re done, go add some rss feeds.
02.20.08
What is Linux?
This page will describe about Linux, the operating system, kernel, it’s creators and more.
02.04.08
Joomla! 1.5