Created
June 4, 2014 13:54
-
-
Save furahaclothing/a9ba180de54891e02d8f to your computer and use it in GitHub Desktop.
wordpress-twitter card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="twitter:card" value="summary" /> | |
<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_the_excerpt(); ?>" /> | |
<meta name="twitter:image" value="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" /> | |
<meta name="twitter:site" value="@twitter_account" /> | |
<meta name="twitter:domain" content="your URL"/> | |
<meta name="twitter:creator" value="@twitter_account" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment