WordPress.org

Ready to get started?Download WordPress

Forums

Revive Old Post (Former Tweet Old Post)
[resolved] Tweets not showing twitter cards (11 posts)

  1. Wanderlusters
    Member
    Posted 11 months ago #

    Everything is working great apart from tweets from the plugin are not showing twitter cards. If we tweet manually or using any of the social buttons on our site twitter cards show just fine. Any ideas why that would be?

    Also it would be great if you included an option to use the wordpress inbuilt shorturl function wp_get_shortlink() as we use our own shortlinks rather than an external service.

    http://wanderlusters.com
    http://twitter.com/wanderlustersuk

    https://wordpress.org/plugins/tweet-old-post/

  2. codeinwp
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Wanderlusters,

    It might be a problem with the short url. Twitter card is dependent of url.

    Can you give us an example of a tweet with card and a tweet without card?

    Thank you, we will take into consideration your suggestion about the wp_get_shortlink.

    Best regards.

  3. Wanderlusters
    Member
    Posted 11 months ago #

    Yeah it looks like it's a shorturl issue. I want the plugin to use the full url as the reference url and counturl but I want the shorturl in the text of the tweet.

    I will manually edit your php to see if that's possible.

  4. Wanderlusters
    Member
    Posted 11 months ago #

    https://twitter.com/wanderlustersuk

    Tweets with a card have a clickable 'View summary' link at the bottom left of each tweet.

    I've been doing some more testing with the plugin and if you use any link other than the full url, or exclude the link, twitter cards are not shown.

    For some reason your plugin is not passing on the original_referer or counturl both of which should be set to the full permalink. That way a custom or short url can be included in the tweet message body as the url and everything will work as expected.

    Would you be able to alter the code to do that?

  5. codeinwp
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Wanderlusters,

    We will try to implement this functionality in the next version.

    Best regards.

  6. Wanderlusters
    Member
    Posted 10 months ago #

    Am I correct in thinking this change has not been included in the new version?

    Also you do not have an option to use the wp_shorturl function rather than an external service?

  7. codeinwp
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    You are right, none of those changes were included. At this version I was looking just to rewrite the whole plugin and maintain the compatibility with the old version.

    Now after this will be completely live, will be very easy for us to add those things.

  8. codeinwp
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    We just added wp_shorturl function, please let me know if twitter cards are working with it.

  9. Wanderlusters
    Member
    Posted 10 months ago #

    Great to hear.

    And thanks for adding wp_shorturl.

  10. DavidFB
    Member
    Posted 10 months ago #

    ditto on adding wp shorturl
    It's much better to offer a URL with your domain than a random short url that people don't know what they're clicking on.

  11. codeinwp
    Member
    Plugin Author

    Posted 10 months ago #

    Now the pro version support also posts with images ( pulled automatically from featured image )

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.