WordPress.org

Support

Support » Plugins and Hacks » All in One SEO Pack » get title, description and url?

get title, description and url?

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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); ?>" />
    uday.dahale

    @udaydahale-1

    Hi Crossx,

    thanks for reply…

    How i can implement this code for my cratch wp theme.

    sorry for my english.

    regards,

    uday

    Plugin Contributor Peter Baylies

    @pbaylies

    Reza,

    I’d suggest you try using the Social Meta module for this instead.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get title, description and url?’ is closed to new replies.
Skip to toolbar