Created
July 23, 2011 19:11
-
-
Save jeherve/1101769 to your computer and use it in GitHub Desktop.
fb:image handled by WordPress custom fields
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
<?php if ( get_post_meta($post->ID, 'fbimage', true) ) : ?> | |
<meta property="og:image" content="<?php echo(get_post_meta($post->ID, "fbimage", true)); ?>" /> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment