{"id":47332,"date":"2011-10-05T08:00:00","date_gmt":"2011-10-05T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/custom-image-src\/"},"modified":"2011-10-26T04:49:00","modified_gmt":"2011-10-26T04:49:00","slug":"custom-image-src","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/custom-image-src\/","title":{"rendered":"Custom Image_Src"},"content":{"rendered":"<p>If you\u2019re sharing a link to a blog post on Facebook, having a thumbnail image makes for a much more effective share. If you have an image in the body of your post, Facebook will use that as the share image, but what if you don\u2019t have any images in your post or want to specify an image you\u2019re not using in the content? To solve this problem, I created a WordPress plugin that allows you to control which image shows when a link from your WordPress site is shared on Facebook.<\/p>\n<ul>\n<li>Thanks to <a href=\"http:\/\/www.farinspace.com\/wpalchemy-metabox\/\" rel=\"nofollow ugc\">Dimas Begunoff<\/a> for the amazingly helpful <a href=\"http:\/\/www.farinspace.com\/wpalchemy-metabox\/\" rel=\"nofollow ugc\">WPAlchemy MetaBox PHP Class<\/a>.<\/li>\n<li>I\u2019m using the <code><link rel=\"image_src\" href=\"\u2026\" \/><\/code> approach. If you\u2019re adding more Open Graph meta tags to your <code><head><\/code>, you\u2019d probably want to use <code><meta property=\"og:image\" content=\"\u2026\" \/><\/code>, but in that case you probably also don\u2019t need this plugin.<\/li>\n<li>If you\u2019re using any other plugins that add sharing info, Open Graph tags, or similar, this plugin will probably conflict with those.<\/li>\n<\/ul>\n<p>For questions, comments, or bugs, you can reach me at <a href=\"http:\/\/twitter.com\/Overlapping\" rel=\"nofollow ugc\">@Overlapping<\/a> or OverlappingElvis [at] gmail [dot] com.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Specify a custom sharing image for Facebook. You can upload an image, use the first image in the post, or use the post thumbnail.<\/p>\n","protected":false},"author":65,"featured_media":229092,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Custom Image_Src - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Specify a custom sharing image for Facebook. You can upload an image, use the first image in the post, or use the post thumbnail."},"footnotes":""},"categories":[1],"tags":[176,15774,2203],"class_list":["post-47332","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-facebook","tag-image_src","tag-social-sharing"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/47332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=47332"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/47332\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/229092"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=47332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=47332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=47332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}