<input type="hidden" id="_wpnonce" name="_wpnonce" value="9c395428d3" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/2406" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="9c395428d3" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/2406" />{"id":2406,"date":"2014-06-03T00:34:00","date_gmt":"2014-06-02T14:34:00","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=2406"},"modified":"2014-06-03T00:34:00","modified_gmt":"2014-06-02T14:34:00","slug":"linkedin-displaying-description-image-wordpress","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2014\/06\/03\/linkedin-displaying-description-image-wordpress\/","title":{"rendered":"LinkedIn Issue not displaying description and image from WordPress"},"content":{"rendered":"<!--CusAds0--><p>So I tried sharing a WordPress blog post on LinkedIn and discovered that LinkedIn wasn&#8217;t displaying the description and thumbnail image from the Open Graph meta tags. I thought it could have been the actual post, so I tried different posts and received the same results.<\/p>\n<h2>WAS THE ISSUE WITH LINKEDIN?<\/h2>\n<p>No, but firstly let me explain how I worked out it wasn&#8217;t related to LinkedIn. After some digging around the best way to troubleshoot the issue was to use the <a href=\"https:\/\/developers.facebook.com\/tools\/debug\/\">Facebook debug tool<\/a>. This tool debugs the Open Graph tags, so if there&#8217;s an error reported then most likely this would be the cause.<\/p>\n<p>Here was the result:<\/p>\n<p><img decoding=\"async\" class=\"alignnone  wp-image-2422\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result.png?strip=all\" alt=\"Facebook Debugger result\" width=\"580\" height=\"84\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result.png?strip=all 960w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result-300x43.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result.png?strip=all&amp;w=192 192w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result.png?strip=all&amp;w=384 384w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result.png?strip=all&amp;w=576 576w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result.png?strip=all&amp;w=768 768w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/Facebook-Debugger-result.png?strip=all&amp;w=450 450w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<h2>WEBSITE PAGE SOURCE<\/h2>\n<p>Basically, the result reported that there was multiple OG URL&#8217;s specified. So what I had to do is actually look at the website&#8217;s page source code. Upon reviewing the source code, indeed there were duplicate OG tags. \u00a0To check your website&#8217;s page source code, just right click and select &#8220;view page source&#8221;.<\/p><!--CusAds0-->\n<p>WORDPRESS<\/p>\n<p>So the issue was within WordPress. To narrow it down, have a look at the source code and determine whether it&#8217;s generated by the plugin or the theme. I am using the Yoast SEO plugin which by default generates the OG tags and upon further inspection the theme (single.php) page had this code:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2423\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/single-post.png?strip=all\" alt=\"single post meta tags\" width=\"706\" height=\"149\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/single-post.png?strip=all 706w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/single-post-300x63.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/single-post.png?strip=all&amp;w=141 141w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/single-post.png?strip=all&amp;w=423 423w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/06\/single-post.png?strip=all&amp;w=564 564w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/p>\n<p>So upon deleting this section of the code and retesting using the Facebook debug tool, the problem was fixed &#8211; LinkedIn displayed the thumbnail and the description.<\/p>\n<p>Hopefully this helps someone solve their issue.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>So I tried sharing a WordPress blog post on LinkedIn and discovered that LinkedIn wasn&#8217;t displaying the description and thumbnail image from the Open Graph meta tags. I thought it could have been the actual post, so I tried different posts and received the same results. WAS THE ISSUE WITH LINKEDIN? No, but firstly let [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2422,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,830],"tags":[160,170,1642],"class_list":["post-2406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business","category-software-technology","tag-issue","tag-linkedin","tag-posting"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=2406"}],"version-history":[{"count":2,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2406\/revisions"}],"predecessor-version":[{"id":2424,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2406\/revisions\/2424"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media\/2422"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=2406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=2406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=2406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}