Repost Settings

WordPress to Buffer Pro will send status(es) to Buffer where:

  1. A Reposting Schedule is defined in the Plugin, and
  2. Post(s) meet the criteria for reposting (for example, Posts were published between 30 and 90 days ago), and
  3. Post(s) have one or more status(es) defined under the Repost action.

Repost statuses are best for automatically reviving (reposting) old Posts that you’re not likely to update the content of very often, yet you still want to periodically share the Posts automatically on social media.

Want to automatically and immediately schedule status messages to Buffer when you Publish and/or Update a Post?  Use the Publish and/or Update Actions in the Status Settings options instead, or as well as the Repost Action.

Reposting Schedule

By default, WordPress to Buffer Pro will repost to Buffer every day at midnight.

You can change the day(s) and time(s) to repost – for example, you can define a repost schedule that runs 4 times every weekday.

In the WordPress Administration, click on the WP to Buffer Pro > Settings in the menu.
WordPress to Buffer Pro: Settings Menu

Click on the Repost Settings tab, where a schedule of Repost Days and Times will be displayed:
WordPress to Social: Repost Settings: Repost Schedule

To add a Repost Time Slot:

  • Click the Add Repost Time Slot button
    WordPress to Social: Repost Settings: Add Time Slot
  • Define the time for each day to Repost.
    • Use the Don’t Repost option if you do not want to repost on a specific day and time slot.
      WordPress to Social: Repost Settings: Don't Repost

To edit an existing Repost Time Slot:

  • Edit the time for the given day

To delete an existing Repost Time Slot:

  • Click the Delete option in the Actions column for the given Repost Time Slot.
    WordPress to Social: Repost Settings: Delete Time Slot

Click Save to update your settings.

The times selected for Reposting are based on WordPress’ Timezone configuration.

Define Criteria for Reposting

Prior to version 3.8.2 these criteria were available at status level.

In the WordPress Administration, click on the WP to Buffer Pro > Settings in the menu.
WordPress to Buffer Pro: Settings Menu

Click on the Repost Settings tab, and then the Post Type tab you want to Repost for:
WordPress to Social: Repost Settings: Post Type

  • Max Posts: The maximum number of Posts that will be sent to Buffer.  This is for each day and time specified in the Repost Schedule.
  • Minimum Interval between Reposting: The minimum number of days that must pass before a previously reposted Post is eligible to be reposted again.  The higher the number, the less likely the same Post will appear on Buffer and social media.
  • Minimum Posts Age: The minimum age a Post must be from today to be eligible for Reposting.  Zero means no minimum.
  • Maximum Posts Age: The maximum age a Post must be from today to be eligible for Reposting.  Zero means no maximum.
  • Repost Order: When Posts are selected based on the above criteria, determines the order in which to go through each Post.
The Random Repost Order may not work on hosts that choose to disable WP_Query’s rand option.
It is not enough to just define the Repost Schedule on the General tab.  You must ALSO click on each Post Type, choosing whether to enable it for Reposting.  If you do not, no statuses will be sent to Buffer.

Define Status(es)

Refer to the Status Settings Documentation for configuring one or more status(es) to send to Buffer.  You’ll be defining these under the Repost action tab, as you normally would.

Testing

Sometimes Reposting may not send statuses as expected.  Because it is triggered and monitored on the server side by WordPress’ CRON system, you’ll need to work through a few steps to establish why reposting failed, until making a configuration change resolves the issue:

1. Confirm WordPress Timezone

  • Navigate to WordPress Admin > Settings > General
  • Set the correct Timezone as necessary for the site, and click Save
  • Make a note of the local time displayed on this screen

2. Confirm WordPress’ Cron system is running

Check for the following line in you wp-config.php file:

define( 'DISABLE_WP_CRON', true );

If this exists, you’ll need to check with your web host:

  • If your web host intentionally disables WordPress’ Cron, and instead trigger WordPress’ Cron in a different way, Repost functionality will work
  • If your web host does not intentionally disable WordPress’ Cron, you’ll need to remove the above line in the wp-config.php file.

3. Enable Plugin and WordPress Logging

  1. Enable Logging in the Plugin’s Settings.
  2. Enable error logging to WordPress’ wp-content/debug.log by adding/modifying the following lines in your wp-config.php file:
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    WordPress to Buffer Pro: Repost Settings: Debugging: Enable debug.log file

4. Test Reposting

In the WordPress Administration, click on the WP to Buffer Pro > Settings in the menu.
WordPress to Buffer Pro: Settings Menu

Click on the Repost Settings tab, and ensure that a Repost Time exists for the current day and hour based on the WordPress Timezone in step 1:
WordPress to Buffer Pro: Repost Settings: Debugging: Repost Times

Save your settings, and then click the Test Repost Cron Now button, which will simulate what the Repost Cron event would do, if run by WordPress at that moment in time:
WordPress to Buffer Pro: Repost Settings: Debugging: Test

After a few moments, the text area below the button will display what would have happened if the Repost Cron event were run by WordPress.  Make a note of any errors or issues, and make configuration changes as necessary to resolve:
WordPress to Buffer Pro: Repost Settings: Debugging: Test Repost Log

In WP to Buffer Pro > Logs, filter by Result = Test:
WordPress to Buffer Pro: Repost Settings: Debugging: Log: Filter Results

You’ll see status(es) that would have been sent.  Again, make a note of any errors or issues, and make configuration changes as necessary to resolve:
WordPress to Buffer Pro: Repost Settings: Debugging: Log: Filter Results Example

Review the log file at wp-content/debug.log

  1. For WordPress to Buffer Pro, you’ll see some entries starting with WP to Buffer Pro: repost().  Review these entries, which will advise why Reposting would, or would not, take place.
    WordPress to Buffer Pro: Repost Settings: Debugging: debug.log file
  2. Any PHP errors or warnings should also be noted, and raised with each Theme or Plugin provider that they originate from.  This is standard, good practice for well functioning sites, and will minimise future issues with all Themes and Plugins – not just ours.

5. Install and Force Reposting via the Crontrol Plugin

If Repost Testing above works, however real Reposting does not yield results, you’ll need to install the Crontrol Plugin, and:

  1. Navigate to Tools > Cron Events
  2. If a message is displayed stating “The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.”, work with your host to enable WordPress’ Cron.
  3. Check for the wp_to_buffer_pro_repost_cron task.
    WordPress to Buffer Pro: Repost Settings: Crontrol: Run Now

    1. If it doesn’t exist, deactivate and reactivate the Plugin.

Once the task exists, click Run Now to force it to run.

In WP to Buffer Pro > Logs, filter by Action = Repost:
WordPress to Buffer Pro: Repost Settings: Filter Logs by Repost Action

You’ll see status(es) that were sent using the Repost method.

  1. Any results for the Repost action in green indicate that Reposting was successful.
  2. Any results for the Repost action in red indicate that Reposting took place, but Buffer returned an error.  Review the response and make the necessary changes.

Review the log file at wp-content/debug.log

  1. For WordPress to Buffer Pro, you’ll see some entries starting with WP to Buffer Pro: repost().  Review these entries, which will advise why Reposting did, or did not, take place.
    WordPress to Buffer Pro: Repost Settings: Debugging: debug.log file
  2. Any PHP errors or warnings should also be noted, and raised with each Theme or Plugin provider that they originate from.  This is standard, good practice for well functioning sites, and will minimise future issues with all Themes and Plugins – not just ours.
No errors and Reposting still not working? Please open a support request, including access to the site in question.

Advanced / Developers

This is an optional step.  Settings here are designed for more advanced WordPress Users and Developers.

Reposting works by using WordPress’ Cron system, scheduling a single event that runs hourly.  If a Repost Time Slot exists matching the day and hour that the event runs on, reposting will take place, depending on the Post Type settings and Repost Statuses that you’ve defined.

On some installations, users may prefer to change when this scheduled task runs – for example, when web site traffic is less than usual – or to disable the event to run it yourself.

In the WordPress Administration, click on the WP to Buffer Pro > Settings in the menu.
WordPress to Buffer Pro: Settings Menu

Click on the Repost Settings tab, and tick the Disable Repost Cron option.

You’ll then have to either:

Both methods honor the Repost Schedule defined in the Plugin’s settings.