问题原文
原帖链接 · Abhishek Macwan · CC BY-SA 3.0
I just changed my Wordpress theme and I can't find <meta property="article:tag" content=" " /> in my posts and pages metadata. Are they really necessary? If they are how do I add them back?
已采纳解答
原帖链接 · Sathiya Kumar V M · CC BY-SA 3.0
<meta property="article:tag" content="Article Tag" /> is one of the Facebook Open Graph tags. Having social media metadata in the website is one of the best practice as it will tell how our webpage's Title, URL, Image, Description, site_name etc should display while sharing.
But I don't think <meta property="article:tag" content="Article Tag" /> is necessary as it is not in the Standard Open Graph tags
<!-- Open Graph data -->
<meta property="og:title" content="Title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
<meta property="og:description" content="Description" />
<meta property="og:site_name" content="Site Name" />
<meta property="fb:admins" content="Facebook numeric ID" />
Still if you want to add that tag you can add like
<!-- Open Graph data -->
<meta property="og:title" content="Title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
<meta property="og:description" content="Description" />
<meta property="og:site_name" content="Site Name" />
<meta property="article:published_time" content="2015-11-11T19:08:47+01:00" />
<meta property="article:modified_time" content="2015-11-11T19:08:47+01:00" />
<meta property="article:section" content="Article Section" />
<meta property="article:tag" content="Article Tag" />
<meta property="fb:admins" content="Facebook numberic ID" />
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
