WordPress.org

Forums

WP to Twitter
[resolved] Issues with duplicated posts and bit.ly (7 posts)

  1. citiesotc
    Member
    Posted 2 years ago #

    Hey,
    Since the latest update when we duplicate a post and use the #url# tag, the bit.ly used links to the original post instead of the new one, this just started happening. Is there any way to solve this?
    Thanks

    http://wordpress.org/extend/plugins/wp-to-twitter/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    Interesting. What method are you using to duplicate a post? There must be a plug-in enabling it.

    What's happening, I suspect, is that the duplication of the post includes the meta data from the original post - and that means that the short URL is being copied over, as well.

  3. citiesotc
    Member
    Posted 2 years ago #

    We use the Duplicate Post plugin. We've been using both your plugin & Duplicate Post for at least a year, and everything played nicely until the recent updates. Here's a link to the plugin: http://wordpress.org/extend/plugins/duplicate-post/ . We have posts with 10+ older tweets, all with different bit.ly links; until this update, it made a new link so long as we used #url# to create a custom tweet.

  4. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    I'll have to do some investigation to see what I can do. I did make a change in the fetching of old short URLs, so that could be the reason - but I want to keep that change, as it was fixing a different issue.

  5. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    All right. So, I looked at the Duplicate Post plug-in, and it has a settings field to specify meta fields that should not be copied over.

    I would suggest adding most of the WP to Twitter post meta fields to that field so that none of them will be copied, but certainly the short URL fields:

    _wp_jd_supr,_wp_jd_ind,_wp_jd_bitly,_wp_jd_wp,_wp_jd_yourls,_wp_jd_url,_wp_jd_goo,_wp_jd_target,_jd_wp_twitter,_jd_twitter,_wpt_failed

    The relevant one varies a bit depending on what shortener you're using. This also includes the archives of past tweets and failed tweets.

  6. citiesotc
    Member
    Posted 2 years ago #

    Thanks, that fixed the issue.

    We actually find the archived tweets very useful, would re-allowing those cause the problem to resurface? If not, which of the short URL fields refer to the archive?

  7. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    _jd_wp_twitter is the field that holds the archived Tweets.

    Best,
    Joe

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP to Twitter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.