Jump to content

Implementing Twitter Cards


Darragh O'Sullivan

Recommended Posts

Hello,

 

I would like to implement Twitter cards (https://dev.twitter.com/cards) on my site.

 

Twitter already pics up the title, description and URL, but I would like to tell it where the main listing image is. 

 

The code I would like to show it is as follows:

 

<meta name="twitter:image:src" content="<?php echo $mainMedia ?>">

 

This is outputting an array, however, which Twitter won't accept.  Is there a quick way to output the main media URL?

 

Darragh

Link to comment
  • 7 months later...
  • 2 weeks later...
  • 2 weeks later...
  • 4 weeks later...
×
×
  • Create New...