NextScripts: Social Networks Auto-Poster plugin for WordPress is a great tool for posting all of your new posts and (which can be even more important), old posts to various social networks. This article describes what to do when the NextScripts: Social Networks Auto-Poster is not working.

NextScripts Social Networks Auto-Poster

NextScripts: Social Networks Auto-Poster

A client of ours required this functionality and we gave this plugin a whirl. Our goal was to have it re-post old posts to Twitter.  However no matter what settings we adjusted, the plugin always showed  the “Total posts included in re-posting: 0” and nothing would get posted.

Since we haven’t found any adequately good and working alternative for this plugin and the support of this feature (re-posting old posts to social networks) is no longer provided by the plugin’s author, we decided to fix it and share the fix with you, our customers and readers.  Here are the steps to take:

Grab a copy of NextScripts: Social Networks Auto-Poster plugin

Find the following code in the nxs_functions.php file:

function nxs_filter_where_only( $where = '' ) { global $wpdb; $where .= " AND ($wpdb->postmeta.meta_key = 'snap_isAutoPosted' AND $wpdb->postmeta.meta_value = '1') "; return $where; }

(for version 3.4.29 of the plugin this code should be on line #983)

and replace that entire code with this:

function nxs_filter_where_only( $where = '' ) { global $wpdb; $where .= " AND ($wpdb->postmeta.meta_key != 'snap_isAutoPosted' OR ($wpdb->postmeta.meta_key = 'snap_isAutoPosted' AND $wpdb->postmeta.meta_value = '0')) "; return $where; }

That’s it. The “Total posts included in re-posting” counter will work now (refresh the page to see the changes) and auto re-posting will work as well. Here you go. Now you know what to do when the Social Networks Auto-Poster Is Not Working.

We hope you found this solution helpful. Let us know and feel free to check out our Managed WordPress hosting service.