Wordpress Technology

Wordpress Tips, Tutorials, Hacks

Preventing from duplicate posts.

wp-o-matic hack

wp-o-matic hack

Another hack to fix the wp-o-matic bug related to posting the duplicate posts.

Open up wpomatic.php

Replace

$row = $wpdb->get_row("SELECT * FROM {$this->db['campaign_post']} "
. "WHERE campaign_id = {$campaign->id} AND feed_id = {$feed->id} AND hash = '$hash' ");

With

$row = $wpdb->get_row("SELECT * FROM {$this->db['campaign_post']} "
. "WHERE hash = '$hash' ");

Replace Next Code

return sha1($item->get_title() . $item->get_permalink());

With

return sha1($item->get_title());

You also can empty table wp_wpo_campaign_post table to start over the autoblog.


Both comments and pings are currently closed.

© 2009 | Made by Vancouver Web Design | Internet Marketing