SHARE
TWEET

Doug's Function

a guest Jan 29th, 2013 24 Never
  1. unction wpc_fb_opengraph() {
  2. $wpc_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
  3. ?>
  4. <meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
  5. <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" />
  6. <meta property="fb:admins" content="1566644629"/>
  7. <meta property="fb:app_id" content="135847609824276">
  8. <?php }
  9.  
  10. add_action('wp_head', 'wpc_fb_opengraph');
RAW Paste Data
Top