Agrega tweets a tus post (y que se vean como tweets)

Fecha: December 30th, 2011 | Categoria: Wordpress | Tags: , | 1 Comentario »


Anda al functions.php de tu theme y agrega:


//Tweets en entradas
add_filter('oembed_providers','twitter_oembed');
function twitter_oembed($a) {
$a['#http(s)?://(www.)?twitter.com/.+?/status(es)?/.*#i'] = array( 'http://api.twitter.com/1/statuses/oembed.{format}', true);
return $a;
}

Luego coloca la url de un tweet y eso es todo.
Esto es posible ya que Twitter recientemente incluyo soporte a oEmbed a su api y wordpress ya soportaba de forma nativa a oEmbed, asi que todos contentos.

Un ejemplo en vivo aqui.

Comparte:
  • Facebook
  • Twitter
  • Google Buzz
  • Tumblr

Articulos Relacionados


Un Comentario on “Agrega tweets a tus post (y que se vean como tweets)”

  1. 1 los angeles said at 6:59 am on May 14th, 2012:

    Hello
    Agrega tweets a tus post (y que se vean como tweets)
    Many thanks, fairly refreshing, I enjoyed reading your article, You are wonderful!
    Thank you!


Comentarios: