# Open Graph y SEO Genesis

**URL:** <https://foro.wpargentina.org/t/open-graph-y-seo-genesis/1106>\
**Category:** Desarrollo\
**Created:** [26 Abril, 2019 01:29 UTC](https://foro.wpargentina.org/t/open-graph-y-seo-genesis/1106 "2019-04-26T01:29:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mparraud](https://foro.wpargentina.org/user_avatar/foro.wpargentina.org/mparraud/32/3233_2.png) [@mparraud](https://foro.wpargentina.org/u/mparraud)\
**Post date:** [26 Abril, 2019 01:29 UTC](https://foro.wpargentina.org/t/open-graph-y-seo-genesis/1106/1 "2019-04-26T01:29:44Z")

</div>

Hola a quien corresponda!!

Estoy usando esta función para generar el opengraph:

```
add_action('wp_head', 'fc_opengraph');
function fc_opengraph() {

  if( is_single() || is_page() ) {

    $post_id = get_queried_object_id();

    $url = get_permalink($post_id);
    $title = get_the_title($post_id);
    $site_name = get_bloginfo('name');

    $description = wp_trim_words( get_post_field('post_content', $post_id), 25 );

    $image = get_the_post_thumbnail_url($post_id);
    if( !empty( get_post_meta($post_id, 'og_image', true) ) ) $image = get_post_meta($post_id, 'og_image', true);

    $locale = get_locale();

    echo '<meta property="og:locale" content="' . esc_attr($locale) . '" />';
    echo '<meta property="og:type" content="article" />';
    echo '<meta property="og:title" content="' . esc_attr($title) . ' | ' . esc_attr($site_name) . '" />';
    echo '<meta property="og:description" content="' . esc_attr($description) . '" />';
    echo '<meta property="og:url" content="' . esc_url($url) . '" />';
    echo '<meta property="og:site_name" content="' . esc_attr($site_name) . '" />';

    if($image) echo '<meta property="og:image" content="' . esc_url($image) . '" />';

  }

}

```

Que saqué de aquí:

> **[Add open graph meta without a plugin in WordPress | Francesco Carlucci](https://francescocarlucci.com/seo/wordpress-open-graph-meta-without-plugin/)**
>
> Open Graph is a protocol used by developers to make sure that Facebook and Twitter can crawl our websites and display shared posts the way we want. Setting the open graph meta tags is very important for our marketing, as explained in this...

lo que quiero hacer es que la **descripción** y el **titulo** los tome de **Genesis SEO** y no del wordpress.

No supe como buscar…  
je

alguna idea?

gracias!
