shally87
Member
Posted 3 years ago #
How to prevent duplicate post?
I've run cron every 20 minutes then i end up getting duplicate post from some campaign. This means for 2 hours i can get 6 same post posted on my blog. Is there a solution for this?
Now my simple solution just to run it every 6 hours.
Anyone can help or any other plugins to avoid duplicate post?
http://wordpress.org/extend/plugins/wp-o-matic/
Iftekhar Ahmed Amit
Member
Posted 3 years ago #
This following solution will fix your problem:
1. Open up wp-includes/post.php in your favorite editor
2. Find the following line :
if ($post_name_check || in_array($post_name, $wp_rewrite->feeds) ) {
3. After this insert a new line of code :
return 0;
4. save (you did make a backup, right?).
5. All done.
Will this work for version 2.2.1?
bekar09
Member
Posted 2 years ago #
so will this top posting duplicate posts? i think this is very useful. please suggest.