WordPress.org

Ready to get started?Download WordPress

Forums

HeadSpace2 SEO
Manual code? (3 posts)

  1. Tifa
    Member
    Posted 2 years ago #

    Hi,

    This plugin is great! I have no issues except I want to integrate it for facebook's open graph. For the description I used:
    bloginfo('description')

    But the problem is it retrieves the site's "description". I wanted to get headspace's description. Is a manual code for this?

    Thanks

    http://wordpress.org/extend/plugins/headspace2/

  2. mtnporcupine
    Member
    Posted 1 year ago #

    Hi Megatoon - Did you ever figure out a solution for this? I would like to do the same thing.

  3. Tifa
    Member
    Posted 1 year ago #

    hi,

    Actually, I forgot about this and they seem to not bother about this.. But I had an idea (but not tested yet). PHP has a function called get_meta_tags, search google for more info.. Anyway, here is my code:

    <? $the_url = get_permalink(); $tags = get_meta_tags($the_url); ?>
     <meta property="og:description" content="<?php echo $tags['description']; ?>" />

    hope this works or at least give you an idea :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic