• Bogdan

    (@bogdanguenther)


    Hi Joe,

    I am experiencing a strange problem here. My posts are automatically imported with WP All Import and then send to Twitter by WP to Twitter. This works quite fine ??

    However when a post is updated it sometimes happens, that it is still send to Twitter although my settings say that this should happen only, when it is newly published:

    https://jumpshare.com/v/I3HLQE4N4JVIq6ASM7QI

    I even set up WP All Import to ignore the Post status when a post is updated, but that didn’t help:

    https://jumpshare.com/v/ol9QSbyWGaUrLyecNY3A

    Do you have a hint for me, how I can solve this problem?

    Thank you,
    Bogdan

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Is this manual updating of the posts, or is the updating something that’s also being done by WP All Import?

    Thread Starter Bogdan

    (@bogdanguenther)

    The updating is also done by WP All Import.

    Plugin Author Joe Dolson

    (@joedolson)

    Then this probably has something to do with how WP All Import handles the updates. Probably something to do with the timestamps that WP All Import sends, which is the data point that WP to Twitter uses to distinguish between new published posts and updated published posts. If WP All Import is updating the post date, that could cause problems. Do you know if it’s doing that?

    Thread Starter Bogdan

    (@bogdanguenther)

    Thank you for the hint with the date, I will try this.

    Thread Starter Bogdan

    (@bogdanguenther)

    Hi Joe,

    I deactivated importing the post status und date for WP All Import updates:

    https://jumpshare.com/v/yzqEzh8qNLE82ogUhwtm

    Unfortunately that didn’t solve the problem and old posts that are just updated are still send to Twitter.

    Are there any other triggers WP to Twitter is using for this configuration:

    https://jumpshare.com/v/Ojp0jLTpTAce1roePk8h

    Thank you,
    Bogdan

    Plugin Author Joe Dolson

    (@joedolson)

    WP to Twitter compares the post modified date to the post published date. It doesn’t really matter whether the post date is changing or not, on its own; the post modified date is also important.

    Have you compared the post modified date to the post published date on a post that got Tweeted? If the post modified date is before or equal to the published date, it’ll be Tweeted.

    Thread Starter Bogdan

    (@bogdanguenther)

    Hi Joe,

    Thank you for the explanation, unfortunately I can’t set up the import to take this into account.

    Is WP Tweets PRO offering the possibility to define that really only newly published posts are tweeted?

    Thank you,
    Bogdan

    Plugin Author Joe Dolson

    (@joedolson)

    No. There’s no definitive way to identify that a post is newly published within WordPress, so that action has to be derived from whatever is being used to publish the posts. It may be that WP All Import has an action for publishing new posts that you could hook into to execute a WP to Twitter Tweet action, in which case you could do that.

    Thread Starter Bogdan

    (@bogdanguenther)

    Hi Joe,

    There’s no definitive way to identify that a post is newly published within WordPress

    I am not very deep into WordPress development, but what about the
    publish_post action?

    Thank you,
    Bogdan

    Plugin Author Joe Dolson

    (@joedolson)

    No, that’s not viable. It runs every time a post is updated if it has the ‘publish’ status, so it also runs every time a previously published post is updated.

    Thread Starter Bogdan

    (@bogdanguenther)

    Ok I see, thank you for that insight. Then I will try to find another solution.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WP to Twitter and WP All Import’ is closed to new replies.