Now we have:

<meta name="description" content="My meta description copy." />
<meta property="og:description" content="My meta description copy." />

However I know it works like that:
<meta name="description" property="og:description" content="My meta description copy." />

Unfortunately, I have no idea how to combine these into one Meta string in this Metatag module.

Any help would be really appreciated.


DamienMcKenna’s picture

Category:task» feature

This would be a feature request, and an interesting one too!

Randy74158’s picture

Ok, since I couldn't wait anymore longer, I 'fixed' it by my own solution:

function THEME_html_head_alter(&$head_elements)
    $meta_desc = $head_elements['metatag_og:description']['#value'];
    $head_elements[] = array(
            '#type' => 'html_tag',
            '#tag' => 'meta',
            '#attributes' => array(
                'name' => 'description',
                'property' => 'og:description',
                'content' => $meta_desc
Amir Simantov’s picture


I also thought that this might be a good feature. However, I am not sure whether it is really needed. The reason is that websites (such as FaceBook) use this tag if they need og:description and cannot find it. Here is where I got the info from.


Elijah Lynn’s picture

I saw the stack overflow link too and came here to see if this had been discussed. I am wondering if there are any disadvantages of combining the two.

DamienMcKenna’s picture

Component:Code» Dublin Core
DamienMcKenna’s picture

Issue summary:View changes
Status:Active» Closed (won't fix)

Not going to do this - the amount of code necessary to implement it honestly outweighs its benefit.