WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
get title, description and url? (4 posts)

  1. Reza Shadpay
    Member
    Posted 1 year 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/

  2. CrossX
    Member
    Posted 1 year 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); ?>" />
  3. uday.dahale
    Member
    Posted 9 months ago #

    Hi Crossx,

    thanks for reply...

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

    sorry for my english.

    regards,

    uday

  4. Peter Baylies
    Member
    Plugin Author

    Posted 9 months ago #

    Reza,

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.