Blog post og:description meta tag uses "name" instead of "property"
-
The og:description doesn’t show up in the diaspora link to this article https://steinar.bang.priv.no/2020/06/27/join-mastodon-and-slowly-posting-a-wordpress-rss-atom-feed/
The reason the description doesn’t show up is that the meta-tag of the blog post uses the “name” attribute instead of the “property” attribute.
For other blog posts the meta tag for og:description correctly uses property.
Any idea what causes this and how it can be fixed?
Thanks!
– Steinar
The blog I need help with is: (visible only to logged in users)
-
Hi Steinar, I’m seeing this in the description:
<meta name="og:description" content="Mastodon is a social network that appears similar to twitter: you get a feed where you can see “toots” instead of “tweets” and you can send your own toots that will be seen …" />Is that not what you intended?
-
Hi, and thanks for responding.
No, it should have been:
<meta property="og:description" content="Mastodon is a social network that appears similar to twitter: you get a feed where you can see “toots” instead of “tweets” and you can send your own toots that will be seen …" />
I.e. “property” instead of “name” as the name of the attribute holding “og:description” for diaspora to pick it up.
The og:description meta tag of other blog posts on my blog use “property” and not “name” so I wondered what happened here?
-
Hi there,
Thank you for that information. I now see the issue. Can you please let me know how exactly you published that post? Did you use the editor in WP-Admin (https://steinarbang.wordpress.com/wp-admin/) or the new interface at https://wordpress.com/ ?
Also, are you using any external or third-party program or service to publish (Press This, Microsoft Word)?
-
Hi,
I used org2blog to write the blog post and publish it using the xml-rpc API
https://github.com/org2blog/org2blog#org2blogI have published many posts using org2blog without seeing this issue.
One difference this time, was that I filled out the Description in the template that org2blog starts with.
The Description wasn’t what appeared in the og:description, but perhaps it messed things up?
I have republished twice, first removing some quotes from the Description and then after removing the Description completely.
Neither of the re-publishings had any effect on the og:description.
-
Hm, as this is a third-party tool, we can’t guarantee support for it.
Have you considered using one of our apps instead? https://apps.wordpress.com/
-
Hi,
The problem isn’t in the tool used to create the blog post.
The problem is that wordpress has a bug in that it creates a meta tag that won’t be recognized by the intended recipient.
Wordpress should not create a wrong meta tag no matter what the post creating tool did (if, indeed, the tool is the culprit).
-
The thing is here though, I’m not seeing
name="og:description"anywhere else except in posts created by the tool you’re using, which makes me wonder if perhaps the tag is being passed along by the tool.Posts created in our editor, and via our apps, are all returning
property="og:description" -
So you’re saying that the meta tag values is something that is set on the blog post by whatever editing tool is used? That the meta tags aren’t generated by wordpress when rendering?
Is there documentation to be found on how to set the meta tag values? Can the meta tag values be affected by the wordpress editor(s)?
FWIW the following blog posts were created with the same tool and all have
<meta property="og:description"...:It’s just one of them that went wrong and got
<meta property="og:description"...instead:Thanks!
-
That’s as much as we can tell, yes.
I’m curious, if you create a new post with the same tool, does it come in again with
name=or is back toproperty=? -
Well… I don’t have anything to write about right now, but I can create a blog post and delete it again.
-
Sure, or we can wait until the next time you have something you want to post. :)
I’m hoping this was just a one-off problem, but if it continues as
name=it’s possible something was changed recently on the tool’s end. -
This post got “property”:
https://steinar.bang.priv.no/2020/07/02/test-1-of-wrong-open-graph-tags/I will try one more thing: setting the Description field before posting the article
-
This one had a Description when I posted it but it didn’t get a broken og:description tag either:
https://steinar.bang.priv.no/2020/07/02/test-2-of-wrong-open-graph-tags/So then my theory that using the Description was the cause seems to be wrong.
What is it that generates the open graph tags? Google didn’t give me anything about native open graph support. I only found third party tools?
PS can I delete the two articles or do you need them for debugging?
-
-
No, since those posted just fine, we don’t need them.
In this case, it appears to have just been a one-off issue, either on the tool’s end or ours, but it’s no longer an issue so we won’t be able to dig further.
Please let us know if it ever happens again!
-
Thanks! I’ve deleted the test articles.
Is there information available anywhere on how the opengraph tags are created?
Google wasn’t able to find me anything.
-
We generate the tags ourselves, but we can also accept tags if they’re passed along via an external tool.
- The topic ‘Blog post og:description meta tag uses "name" instead of "property"’ is closed to new replies.