how to add opengraph on head of pods pages
-
my pods pages are working fine but open graph tags are missing . please help me .
how to print datepublished tag – between `<head> <meta property=”datePublished” content=”<?php echo $current_date; ?>” />
</head>`my php code — `
add_action( ‘wp_head’, function($pods) {
global $pods;
date_default_timezone_set(‘Asia/Kolkata’);
$post_id = $post->ID;
$published = $post->post_date));
$date_atom = DATE_ATOM; //”Y-m-d\TH:m:s+G:i”;
}
}
?>
<meta property=”og:updated_time” content=”<?php echo date($date_atom, strtotime($post->post_date)); ?>” />
<meta property=”datePublished” content=”<?php echo date($date_atom, strtotime($post->post_date)); ?>” /><?php
});`
Please help me
- The topic ‘how to add opengraph on head of pods pages’ is closed to new replies.