Title: Auto-post only every second post
Last modified: August 31, 2016

---

# Auto-post only every second post

 *  Resolved [Mr. Grande](https://wordpress.org/support/users/grandeto/)
 * (@grandeto)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-post-only-every-second-post/)
 * Hi mates,
 * Outstanding work! Your plugin is absolutely useful!
    Мy question is next:
 * I need to make the plugin to auto-post on every second post.
    Obviously I need
   to add something like this to the source:
 * if (postID % 2 == 0)
    { post(); } else { break; }
 * May you help me with that
    Thanks
 * [https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/](https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [NextScripts](https://wordpress.org/support/users/nextscripts/)
 * (@nextscripts)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-post-only-every-second-post/#post-7456830)
 * Please look at the function nxs_snapLogPublishTo from the NextScripts_SNAP.php
 *  Thread Starter [Mr. Grande](https://wordpress.org/support/users/grandeto/)
 * (@grandeto)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/auto-post-only-every-second-post/#post-7456836)
 * Tnx
 * I added:
 * `if ($post->ID % 3 == 0) {return;}`
 * just after line 73:
 * `if (!function_exists("nxs_snapLogPublishTo")) { function nxs_snapLogPublishTo(
   $new_status, $old_status, $post ) { clean_post_cache( $post->ID );`
 * It works

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Auto-post only every second post’ is closed to new replies.

 * ![](https://ps.w.org/social-networks-auto-poster-facebook-twitter-g/assets/icon-
   256x256.png?rev=1106267)
 * [NextScripts: Social Networks Auto-Poster](https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/)
 * [Active Topics](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mr. Grande](https://wordpress.org/support/users/grandeto/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/auto-post-only-every-second-post/#post-7456836)
 * Status: resolved