{"id":7377790,"date":"2016-05-13T14:33:04","date_gmt":"2016-05-13T14:33:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/url-wrong\/"},"modified":"2016-08-31T17:36:50","modified_gmt":"2016-08-31T17:36:50","slug":"url-wrong","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/url-wrong\/","title":{"rendered":"URL wrong"},"content":{"rendered":"<p>For sites setup with wordpress in a sub-folder, this is outputing example.com\/wordpress as the URL property, which goes against the guideline for this property on the google page:<\/p>\n<blockquote>\n<p>url &#8211; This property specifies the URL of your website. It must match the canonical URL of your domain&#8217;s homepage.<\/p>\n<\/blockquote>\n<p>Line 42 should use:<\/p>\n<p><code>echo &#039;  &quot;url&quot;: &quot;&#039; . get_home_url() . &#039;\/&quot;,&#039; . PHP_EOL;<\/code><\/p>\n<p>To get the Site Address (URL) field from the settings &gt; general page.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/sitelinks-search-box\/<\/p>\n","protected":false},"template":"","class_list":["post-7377790","topic","type-topic","status-publish","hentry","topic-tag-subfolder","topic-tag-url"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7377790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7377790\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7377790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}