【问题标题】:wordpress yoast og:url Not included in METAwordpress yoast og:url 不包含在 META 中
【发布时间】:2016-04-22 11:58:45
【问题描述】:

刚刚开始.. 有人知道为什么 OG:URL 会从 <head> 的 Yoast 元中丢失吗?

foreverphotographystudio.com

<!-- This site is optimized with the Yoast SEO plugin v3.0.7 - https://yoast.com/wordpress/plugins/seo/ -->
<meta name="description" content="Austin Wedding Photographer | Forever Photography Studio. Fine art Austin Wedding Photography by the best Austin Wedding Photographers"/>
<meta name="robots" content="noodp"/>
<link rel="publisher" href="https://plus.google.com/+Foreverphotographystudio"/>
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Austin Wedding Photographer | Forever Photography Studio" />
<meta property="og:description" content="Austin Wedding Photographer | Forever Photography Studio. Fine art Austin Wedding Photography by the best Austin Wedding Photographers" />
<meta property="og:site_name" content="Forever Photography Studio" />
<meta property="og:image" content="http://www.foreverphotographystudio.com/wp-content/uploads/2015/12/ForeverPhotographyStudioLogo.jpg" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:description" content="Austin Wedding Photographer | Forever Photography Studio. Fine art Austin Wedding Photography by the best Austin Wedding Photographers"/>
<meta name="twitter:title" content="Austin Wedding Photographer | Forever Photography Studio"/>
<meta name="twitter:site" content="@FPS_photo"/>
<meta name="twitter:image" content="http://www.foreverphotographystudio.com/wp-content/uploads/2015/12/ForeverPhotographyStudioLogo.jpg"/>
<meta name="twitter:creator" content="@FPS_photo"/>
<script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"WebSite","url":"http:\/\/www.foreverphotographystudio.com\/","name":"Austin Wedding Photographer | Forever Photography Studio","alternateName":"Austin Wedding Photographer","potentialAction":{"@type":"SearchAction","target":"http:\/\/www.foreverphotographystudio.com\/?s={search_term_string}","query-input":"required name=search_term_string"}}</script>
<script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"Organization","url":"http:\/\/www.foreverphotographystudio.com\/","sameAs":["https:\/\/www.facebook.com\/ForeverPhotographyStudio","http:\/\/www.instagram.com\/foreverphotographystudio","https:\/\/www.linkedin.com\/company\/forever-photography","https:\/\/plus.google.com\/+Foreverphotographystudio","https:\/\/www.pinterest.com\/FPS_Photography\/","https:\/\/twitter.com\/FPS_photo"],"name":"Forever Photography Studio | Austin Wedding Photographer","logo":"http:\/\/www.foreverphotographystudio.com\/wp-content\/uploads\/2015\/12\/1518191_10151864082616924_1046507677_o.jpg"}</script>
<meta name="yandex-verification" content="68998b2e2c070db0" />
<!-- / Yoast SEO plugin. -->

【问题讨论】:

    标签: wordpress seo meta


    【解决方案1】:

    已将“Yoast SEO”插件更新到最新版本,应该已修复。

    https://wordpress.org/plugins/wordpress-seo/

    【讨论】:

      【解决方案2】:

      检查你的 header.php 并添加以下行:

      &lt;?php wp_head(); ?&gt;

      【讨论】:

      • 他包含的元数据在网站中,所以wp_head()在header.php中。 Yoast SEO 插件不再包含 og:url 元数据。我有同样的问题,我正在尝试找出原因。至少 Facebook 调试工具会针对丢失的 og:url 发出警告。 developers.facebook.com/tools/debug/og/object
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-31
      • 1970-01-01
      • 2014-10-05
      • 2020-06-13
      • 2016-12-14
      相关资源
      最近更新 更多