JM Twitter Cards

Description

Once activated the plugin adds appropriate meta on your WordPress website allowing you to get Twitter cards for your posts according to your settings. Enjoy !

Features

  • Gutenberg compatible with a custom sidebar
  • meta box : customize Twitter Cards experience (per each post)
  • preview : preview the rendering on Twitter.
  • WP SEO by Yoast and All in One SEO compatible (no conflict with SEO title and desc set with these plugins)

Translators

The plugin is available in French, English and Spanish. Feel totally free to send me your translation in other languages.
You’ll be added to the list here with your name and URL.
Thanks a lot to all translators. Can’t wait to add your work to the project.

Versions 13++ on GitLab

This is where I work on the new version of the plugin for fun (new features, refactoring & possible breaking changes).

Note that this new version won’t be pushed to WordPress.org, at least, for now. If you want to try it, feel free to clone the project.

Installation

  1. Upload plugin files to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Then go to settings > JM Twitter Cards to configure the plugin
  4. To display the metabox in edit section (posts, pages, attachments) just use default settings or enable only the post types you want

FAQ

I got problem with Instagram

It’s a known issue due to Instagram. Twitter said it recently : Users are experiencing issues with viewing Instagram photos on Twitter. Issues include cropped images.This is due to Instagram disabling its Twitter cards integration, and as a result, photos are being displayed using a pre-cards experience.
So, when users click on Tweets with an Instagram link, photos appear cropped.

Plugin is fine but Twitter cards doesn’t appear in my tweets

  1. Make sure you correctly fulfilled fields in option page according to Twitter documentation
  2. Be careful with your robots.txt and put some rules to allow Twitter to fetch your website :

    User-agent: Twitterbot
    Disallow:
    

If it still doesn’t work please open a thread on support.

The plugin generates a lot of images (different sizes)

I can be a problem when you work with HD and/or a lot of images.

How do I use the custom fields option?

Basically you provide your custom field keys in plugin option page and then it will grab datas.

/**************
* *
* En Français *
* *
************/

Problème avec Instagram

C’est un problème connu. Cela vient d’Instagram lui-même qui préfère que ses utilisateurs partagent les photos chez lui plutôt que sur Twitter. Instagram a supprimé ses Twitter Cards.

Le plugin marche mais je n’obtiens pas de Twitter Cards dans mes tweets

  1. Assurez-vous bien d’avoir rempli correctement les champs dans la page d’options suivant la documentation Twitter
  2. Attention avec le fichier robots.txt, vous devez autoriser le robot de Twitter à crawler votre site:

    User-agent: Twitterbot
    Disallow:
    

Si cela ne marche toujours pas SVP ouvrez un topic sur le support.

Le plugin génère beaucoup trop de fichiers images

Cela peut poser problème si vous travaillez avec de la HD et/ou beaucoup d’images. Vous pouvez donc utiliser un plugin qui va effacer les fichiers images non utilisés.

Comment utiliser l’option custom fields?

Il suffit de renseigner les clés de vos custom fields en page d’option et le plugin s’occupera de récupérer les datas correspondantes.

Reviews

February 5, 2022 2 replies
This plugin is so simple it confused me, i was trying to work out how to connects to the twitter API. It doesn't (as it says in the description) it adds metadata to each post and when you post the link in the twitter app it 'all just works'! Only thing i would like to see added is the ability for twitter:description to be populated from the Excerpt text not the body text. There seems to be an option to do this but it seems it doesn't work? **update - raising to 5 stars** Developer corrected the way the feature worked within 5 days of me raising the issue. Thanks, and Brilliant!
December 30, 2020
Los estractos salen por Twitter como atractivas tarjetas.
January 11, 2018
Not compatible with the latest version of WordPress. It breaks the website entirely.
Read all 48 reviews

Contributors & Developers

“JM Twitter Cards” is open source software. The following people have contributed to this plugin.

Contributors

Translate “JM Twitter Cards” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

See changelog.txt