Reza Shadpay
Member
Posted 5 months ago #
Hello, I'm going to add property for Google extracted structured data in "Additional Post Headers" filed in All in One SEO Pack.
anyone knows how to get title, description and url of each post?
<meta property='og:title' content='xxx'/>
<meta property='og:description' content='xxx'/>
<meta property='og:url' content='xxx'/>
Thanks
http://wordpress.org/extend/plugins/all-in-one-seo-pack/
CrossX
Member
Posted 4 months ago #
put this inside while have_posts tag
<meta property="og:url" content="<?php the_permalink() ?>"/>
<meta property="og:title" content="<?php single_post_title(''); ?>" />
<meta property="og:description" content="<?php echo the_excerpt_rss($post->ID); ?>" />