• 1.
    <?php if(is_single() || is_page()) { ?>
  • 2.
    	<meta name="twitter:card" content="summary">
  • 3.
    	<meta name="twitter:site" content="TWITTER_USERNAME">
  • 4.
    	<meta name="twitter:creator" content="TWITTER_USERNAME">
  • 5.
    	<meta name="twitter:url" content="<?php the_permalink(); ?>">
  • 6.
    	<meta name="twitter:title" content="<?php the_title(); ?>">
  • 7.
    	<meta name="twitter:description" content="<?php the_excerpt_rss(); ?>">
  • 8.
    	<?php if (has_post_thumbnail()) { ?>
  • 9.
    	    <meta name="twitter:image" content="<?php the_post_thumbnail(); ?>">
  • 10.
    	<?php } ?>
  • 11.
     
  • 12.
    	<meta property="og:type" content="article">
  • 13.
    	<meta property="og:title" content="<?php the_title(); ?>">
  • 14.
    	<meta property="og:url" content="<?php the_permalink(); ?>">
  • 15.
    	<meta property="og:description" content="<?php the_excerpt_rss(); ?>">
  • 16.
    	<meta property="og:site_name" content="<?php bloginfo('name'); ?>">">
  • 17.
    	<?php if (has_post_thumbnail()) { ?>
  • 18.
    	    <meta property="og:image" content="<?php the_post_thumbnail(); ?>">
  • 19.
    	<?php } ?>
  • 20.
    <?php } ?>
<?php if(is_single() || is_page()) { ?> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="TWITTER_USERNAME"> <meta name="twitter:creator" content="TWITTER_USERNAME"> <meta name="twitter:url" content="<?php the_permalink(); ?>"> <meta name="twitter:title" content="<?php the_title(); ?>"> <meta name="twitter:description" content="<?php the_excerpt_rss(); ?>"> <?php if (has_post_thumbnail()) { ?> <meta name="twitter:image" content="<?php the_post_thumbnail(); ?>"> <?php } ?> <meta property="og:type" content="article"> <meta property="og:title" content="<?php the_title(); ?>"> <meta property="og:url" content="<?php the_permalink(); ?>"> <meta property="og:description" content="<?php the_excerpt_rss(); ?>"> <meta property="og:site_name" content="<?php bloginfo('name'); ?>">"> <?php if (has_post_thumbnail()) { ?> <meta property="og:image" content="<?php the_post_thumbnail(); ?>"> <?php } ?> <?php } ?>

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter