Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Created September 29, 2014 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salsalabs/a4dc8e879d62c25493c5 to your computer and use it in GitHub Desktop.
Save salsalabs/a4dc8e879d62c25493c5 to your computer and use it in GitHub Desktop.
Pro Tip example for putting multiple OG tags into a template.
// insert your action OG meta <tag> 'case' statements here.
case '9214':
?>
<meta property="og:image" content="..."/>
<meta property="og:title" content="..."/>
<meta property="og:url" content="..."/>
<meta property="og:site_name" content="..."/>
<meta property="og:type" content=".../>
<meta property="og:description" content="..."/>
<?
break;
case '12924':
?>
<meta property="og:image" content="..."/>
<meta property="og:title" content="..."/>
<meta property="og:url" content="..."/>
<meta property="og:site_name" content="..."/>
<meta property="og:type" content=".../>
<meta property="og:description" content="..."/>
<?
break;
case '15666':
?>
<meta property="og:image" content="..."/>
<meta property="og:title" content="..."/>
<meta property="og:url" content="..."/>
<meta property="og:site_name" content="..."/>
<meta property="og:type" content=".../>
<meta property="og:description" content="..."/>
<?
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment