{"id":4106,"date":"2013-02-24T07:11:18","date_gmt":"2013-02-24T05:11:18","guid":{"rendered":"http:\/\/www.iyannis.gr\/blog\/?p=4106"},"modified":"2013-07-16T09:52:50","modified_gmt":"2013-07-16T07:52:50","slug":"%ce%b5%cf%84%ce%bf%ce%af%ce%bc%ce%b1%cf%83%ce%b5-%cf%84%ce%bf-blog-%cf%83%ce%bf%cf%85-%ce%b3%ce%b9%ce%ac-%cf%84%ce%ac-social-media","status":"publish","type":"post","link":"https:\/\/www.iyannis.gr\/blog\/2013\/02\/24\/%ce%b5%cf%84%ce%bf%ce%af%ce%bc%ce%b1%cf%83%ce%b5-%cf%84%ce%bf-blog-%cf%83%ce%bf%cf%85-%ce%b3%ce%b9%ce%ac-%cf%84%ce%ac-social-media\/","title":{"rendered":"\u03b5\u03c4\u03bf\u03af\u03bc\u03b1\u03c3\u03b5 \u03c4\u03bf blog \u03c3\u03bf\u03c5 \u03b3\u03b9\u03ac \u03c4\u03ac social media"},"content":{"rendered":"<div style=\"background-repeat: no-repeat;\"><p><a href=\"http:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-4107\" title=\"twitter-followers-full-text\" src=\"https:\/\/www.iyannis.gr\/blog\/wp-content\/plugins\/wp-images-lazy-loading\/images\/grey.gif\" data-original=\"http:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text.gif\" alt=\"\" width=\"200\" height=\"200\" srcset=\"https:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text.gif 200w, https:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text-150x150.gif 150w, https:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text-92x92.gif 92w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><noscript><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4107\" title=\"twitter-followers-full-text\" src=\"http:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text.gif\" alt=\"\" width=\"200\" height=\"200\" srcset=\"https:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text.gif 200w, https:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text-150x150.gif 150w, https:\/\/www.iyannis.gr\/blog\/wp-content\/uploads\/2013\/02\/twitter-followers-full-text-92x92.gif 92w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/noscript><\/a><br \/>\n\u0393\u03b9\u03b1 \u03bd\u03b1 \u03ad\u03c7\u03b5\u03b9\u03c2 \u03c4\u03bf blog \u03c3\u03bf\u03c5 \u03ad\u03c4\u03bf\u03b9\u03bc\u03bf \u03b3\u03b9\u03b1 \u03c4\u03b1 social media \u03b1\u03c0\u03bb\u03ac \u03b1\u03bd\u03c4\u03ad\u03b3\u03c1\u03b1\u03c8\u03b5 \u03c4\u03bf\u03bd \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03bc\u03ad\u03c3\u03b1 \u03c3\u03c4\u03bf<br \/>\n<strong>functions.php<\/strong> \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \u03c4\u03bf\u03c5 \u03b8\u03ad\u03bc\u03b1\u03c4\u03bf\u03c2 \u03c0\u03bf\u03c5 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c2. \u0391\u03c5\u03c4\u03cc \u03c4\u03bf snippet \u03b8\u03b1 \u03b2\u03ac\u03bb\u03b5\u03b9 \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c4\u03b1 Open Graph metadata \u03c3\u03c4\u03ae\u03bd \u03c0\u03b5\u03c1\u03b9\u03bf\u03c7\u03ae  \u03b1\u03c0\u03cc \u03c4\u03b9\u03c2 \u03c3\u03b5\u03bb\u03af\u03b4\u03b5\u03c2 \u03c3\u03bf\u03c5.<\/p>\n<blockquote><p>function wptuts_opengraph_for_posts() {<\/p>\n<p>if ( is_singular() ) {<\/p>\n<p>global $post;<\/p>\n<p>setup_postdata( $post );<\/p>\n<p>$og_type = &#8216;&lt;meta property=&#8221;og:type&#8221; content=&#8221;article&#8221; \/&gt;&#8217; . &#8220;\\n&#8221;;<\/p>\n<p>$og_title = &#8216;&lt;meta property=&#8221;og:title&#8221; content=&#8221;&#8216; . esc_attr( get_the_title() ) . &#8216;&#8221; \/&gt;&#8217; . &#8220;\\n&#8221;;<\/p>\n<p>$og_url = &#8216;&lt;meta property=&#8221;og:url&#8221; content=&#8221;&#8216; . get_permalink() . &#8216;&#8221; \/&gt;&#8217; . &#8220;\\n&#8221;;<\/p>\n<p>$og_description = &#8216;&lt;meta property=&#8221;og:description&#8221; content=&#8221;&#8216; . esc_attr( get_the_excerpt() ) . &#8216;&#8221; \/&gt;&#8217; . &#8220;\\n&#8221;;<\/p>\n<p>if ( has_post_thumbnail() ) {<\/p>\n<p>$imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), &#8216;medium&#8217; );<\/p>\n<p>$og_image = &#8216;&lt;meta property=&#8221;og:image&#8221; content=&#8221;&#8216; . $imgsrc[0] . &#8216;&#8221; \/&gt;&#8217; . &#8220;\\n&#8221;;<\/p>\n<p>}<\/p>\n<p>echo $og_type . $og_title . $og_url . $og_description . $og_image;<\/p>\n<p>}<\/p>\n<p>}<\/p><\/blockquote>\n<p>\u0393\u03b9\u03b1 \u03bd\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03bf blog \u03c3\u03bf\u03c5 \u03c0\u03bb\u03ae\u03c1\u03c9\u03c2 \u03c3\u03c5\u03bc\u03b2\u03b1\u03c4\u03cc \u03bc\u03b5 \u03c4\u03bf Open Graph protocol, \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03b5\u03c0\u03af\u03c3\u03b7\u03c2 \u03bd\u03b1 \u03b1\u03bb\u03bb\u03ac\u03be\u03b5\u03b9\u03c2 \u03c4\u03bf  <strong>header.php<\/strong> \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \u03b1\u03bb\u03bb\u03ac\u03b6\u03bf\u03bd\u03c4\u03b1\u03c2 \u03c4\u03bf  tag \u03bc\u03b5 \u03c4\u03bf \u03b1\u03ba\u03cc\u03bb\u03bf\u03c5\u03b8\u03bf:<\/p>\n<p><code><br \/>\n<\/code><\/p>\n<blockquote><p><code>&lt;html &lt;?php language_attributes(); ?&gt; prefix=\"og: http:\/\/ogp.me\/ns#\"&gt;<br \/>\n<\/code><\/p><\/blockquote>\n<p><code> <\/code><\/p>\n<p>&nbsp;<\/p>\n<p><code> <\/code><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.wprecipes.com\/how-to-use-open-graph-to-make-your-content-easily-recognizable-by-social-networks\">\u03c0\u03b7\u03b3\u03ae<\/a><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<img width=\"75\" height=\"75\" src=\"http:\/\/www.iyannis.gr\/blog\/wp-content\/plugins\/thumbnail-for-excerpts\/tfe_no_thumb.png\" class=\"alignleft wp-post-image tfe\" alt=\"\" title=\"\" \/><p>\u0393\u03b9\u03b1 \u03bd\u03b1 \u03ad\u03c7\u03b5\u03b9\u03c2 \u03c4\u03bf blog \u03c3\u03bf\u03c5 \u03ad\u03c4\u03bf\u03b9\u03bc\u03bf \u03b3\u03b9\u03b1 \u03c4\u03b1 social media \u03b1\u03c0\u03bb\u03ac \u03b1\u03bd\u03c4\u03ad\u03b3\u03c1\u03b1\u03c8\u03b5 \u03c4\u03bf\u03bd \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03bc\u03ad\u03c3\u03b1 \u03c3\u03c4\u03bf functions.php \u03b1\u03c1\u03c7\u03b5\u03af\u03bf \u03c4\u03bf\u03c5 \u03b8\u03ad\u03bc\u03b1\u03c4\u03bf\u03c2 \u03c0\u03bf\u03c5 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c2. \u0391\u03c5\u03c4\u03cc \u03c4\u03bf snippet \u03b8\u03b1 \u03b2\u03ac\u03bb\u03b5\u03b9 \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c4\u03b1 Open Graph metadata \u03c3\u03c4\u03ae\u03bd \u03c0\u03b5\u03c1\u03b9\u03bf\u03c7\u03ae \u03b1\u03c0\u03cc \u03c4\u03b9\u03c2 \u03c3\u03b5\u03bb\u03af\u03b4\u03b5\u03c2 \u03c3\u03bf\u03c5. function wptuts_opengraph_for_posts() { if ( is_singular() ) { global $post;&#8230; <a href=\"https:\/\/www.iyannis.gr\/blog\/2013\/02\/24\/%ce%b5%cf%84%ce%bf%ce%af%ce%bc%ce%b1%cf%83%ce%b5-%cf%84%ce%bf-blog-%cf%83%ce%bf%cf%85-%ce%b3%ce%b9%ce%ac-%cf%84%ce%ac-social-media\/\" class=\"readmore\">&#8212; \uf8ff<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","_links_to":"","_links_to_target":""},"categories":[216],"tags":[373,374,829],"featured_image_src":null,"author_info":{"display_name":"iYannis","author_link":"https:\/\/www.iyannis.gr\/blog\/author\/admin\/"},"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/posts\/4106"}],"collection":[{"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/comments?post=4106"}],"version-history":[{"count":22,"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/posts\/4106\/revisions"}],"predecessor-version":[{"id":5751,"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/posts\/4106\/revisions\/5751"}],"wp:attachment":[{"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/media?parent=4106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/categories?post=4106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iyannis.gr\/blog\/wp-json\/wp\/v2\/tags?post=4106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}