Twitter Cards code

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Mar 20, 2013 9:54 pm
Reply with quote
Report this post
Does anyone have any experience of implementing Twitter Cards code into Joomla/K2?

I've read this page but it's based on Word Press.

Can anyone help or shed light on what should go in the <head>?

Code from the site/Word Press
Code: Select all
<!-- Twitter Card -->
<?php if(is_single() ) {?> <meta name="twitter:card" value="summary">
<meta name="twitter:creator" value="@ajkohn">
<meta name="twitter:url" value="<?php echo get_permalink(); ?>">
<meta name="twitter:title" value="<?php echo get_the_title(); ?>">
<meta name="twitter:description" value="<?php echo get_post_meta($post->ID, '_aioseop_description', $single = true); ?>">
<?php if(get_post_meta($post->ID, 'og_img')){ ?>
<meta name="twitter:image" value="<?php echo get_post_meta($post->ID, 'og_img', $single = true); ?>" />
<?php } else { ?>
<meta name="twitter:image" value="http://www.blindfiveyearold.com/wp-content/uploads/2008/09/blind-five-year-old-150x150.png" />
<?php } ?> <?php }?>
User avatar
Junior Boarder

GK User
Wed Mar 20, 2013 10:34 pm
Reply with quote
Report this post
There is a plugin for j2.5 which might work for j3.0 check it out.

http://www.emren.net/projects/twitter-c ... a-2-5.html

Or Hack & code for joomla 2.5 I assume.

http://forum.joomla.org/viewtopic.php?f=712&t=786152

Currently our developers are also looking to add this feature in our templates so although there is no ETA you might want to wait a little longer.

See you around...
User avatar
Platinum Boarder


cron