{"id":2039,"date":"2012-11-13T17:14:15","date_gmt":"2012-11-13T10:14:15","guid":{"rendered":"http:\/\/pridio.com\/?p=2039"},"modified":"2012-11-16T11:59:00","modified_gmt":"2012-11-16T04:59:00","slug":"breadcrums-chuan-rdfa","status":"publish","type":"post","link":"https:\/\/pridio.com\/en\/kien-thuc\/seo-du-an\/breadcrums-chuan-rdfa\/","title":{"rendered":"Breadcrums chu\u1ea9n RDFa"},"content":{"rendered":"<p>Breadcrums l\u00e0 c\u00e1i n\u00e0y:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2040\" title=\"breadcrums2\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/11\/breadcrums2-565x116.jpg\" alt=\"\" width=\"565\" height=\"116\" srcset=\"https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums2-565x116.jpg 565w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums2-300x61.jpg 300w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums2-530x109.jpg 530w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums2-120x24.jpg 120w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums2.jpg 640w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/p>\n<p>N\u00f3 s\u1ebd gi\u00fap k\u1ebft qu\u1ea3 t\u00ecm ki\u1ec3m c\u1ee7a b\u1ea1n tr\u00ean Google c\u00f3 d\u1ea1ng th\u1ebf n\u00e0y:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2041\" title=\"breadcrums\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/11\/breadcrums.jpg\" alt=\"\" width=\"531\" height=\"86\" srcset=\"https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums.jpg 531w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums-300x48.jpg 300w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums-530x85.jpg 530w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2012\/11\/breadcrums-120x19.jpg 120w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/p>\n<p>Thay v\u00ec 1 \u0111\u01b0\u1eddng link d\u00e0i ngo\u1eb1ng, Breadcrums gi\u00fap b\u1ea1n c\u00f3 \u0111\u01b0\u1ee3c c\u00e1ch hi\u1ec7n th\u1ecb \u0111\u1eb9p h\u01a1n v\u1edbi ng\u01b0\u1eddi d\u00f9ng, nh\u01b0 v\u00ed d\u1ee5 tr\u00ean, th\u00ec ng\u01b0\u1eddi d\u00f9ng c\u00f2n click \u0111\u01b0\u1ee3c c\u1ea3 v\u00e0o ch\u1eef <span style=\"color: #888888;\">&#8220;<a href=\"http:\/\/www.benhtri.net.vn\/\"><span style=\"color: #888888;\">b\u1ec7nh tr\u0129<\/span><\/a>&#8220;.<\/span><\/p>\n<h2>C\u00e1ch t\u1ea1o Breadcrums tr\u00ean WordPress<\/h2>\n<p>Mu\u1ed1n l\u00e0m \u0111\u01b0\u1ee3c nh\u01b0 tr\u00ean, HTML c\u1ee7a b\u1ea1n ph\u1ea3i c\u00f3 d\u1ea1ng nh\u01b0 sau:<\/p>\n<p>[code]&lt;div xmlns:v=&quot;http:\/\/rdf.data-vocabulary.org\/#&quot; class=&quot;seobreadcrumbs&quot;&gt;<br \/>\n&lt;span typeof=&quot;v:Breadcrumb&quot;&gt;<br \/>\n&lt;a rel=&quot;v:url&quot; property=&quot;v:title&quot; href=&quot;http:\/\/pridio.com&quot;&gt;\u0110\u01b0\u1eddng link trang ch\u1ee7&lt;\/a&gt;<br \/>\n&lt;\/span&gt;<br \/>\n&amp;rsaquo;<br \/>\n&lt;span typeof=&quot;v:Breadcrumb&quot;&gt;<br \/>\n&lt;a rel=&quot;v:url&quot; property=&quot;v:title&quot; href=&quot;http:\/\/pridio.com\/kien-thuc-seo\/&quot; &gt;\u0110\u01b0\u1eddng link th\u01b0 m\u1ee5c(th\u00eam th\u01b0 m\u1ee5c con n\u1ebfu c\u00f3)&lt;\/a&gt;<br \/>\n&lt;\/span&gt;<br \/>\n&lt;\/div&gt;[\/code]<\/p>\n<p>B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i plugin, tuy nhi\u00ean n\u1ebfu kh\u00f4ng th\u00edch c\u00e0i plugin c\u00f3 th\u1ec3 d\u00f9ng c\u00e1ch c\u1ee7a t\u00f4i.<br \/>\nB1: Th\u00eam \u0111o\u1ea1n m\u00e3 sau v\u00e0o function.php:<\/p>\n<p>[php]<br \/>\n\/\/Pridio breadcrumbs<br \/>\nif ( ! function_exists( &#8216;pridiobreadcrumbs&#8217; ) ) :<br \/>\nfunction pridiobreadcrumbs() {<br \/>\n$separator = &#8216;&amp;rsaquo;&#8217;;<br \/>\n$home = &#8216;Home&#8217;;<br \/>\necho &#8216;&lt;div xmlns:v=&quot;http:\/\/rdf.data-vocabulary.org\/#&quot; class=&quot;seobreadcrumbs&quot;&gt;&#8217;;<br \/>\nglobal $post;<br \/>\necho &#8216; &lt;span typeof=&quot;v:Breadcrumb&quot;&gt;<br \/>\n&lt;a rel=&quot;v:url&quot; property=&quot;v:title&quot; href=&quot;http:\/\/pridio.com&quot;&gt;Home&lt;\/a&gt;<br \/>\n&lt;\/span&gt; &#8216;;<br \/>\n$category = get_the_category();<br \/>\nif ($category) {<br \/>\nforeach($category as $category) {<br \/>\necho $separator . &quot;&lt;span typeof=\\&quot;v:Breadcrumb\\&quot;&gt;<br \/>\n&lt;a rel=\\&quot;v:url\\&quot; property=\\&quot;v:title\\&quot; href=\\&quot;&quot;.get_category_link($category-&gt;term_id).&quot;\\&quot; &gt;$category-&gt;name&lt;\/a&gt;<br \/>\n&lt;\/span&gt;&quot;;<br \/>\n}<br \/>\n}<br \/>\necho &#8216;&lt;\/div&gt;&#8217;;<br \/>\n}<br \/>\nendif;<br \/>\n \/\/ end pridiobreadcrumbs()<br \/>\n[\/php]<\/p>\n<p>D\u00e0nh cho c\u00e1c b\u1ea1n kh\u00f4ng bi\u1ebft code: Copy v\u00e0o tr\u01b0\u1edbc d\u00f2ng ?&gt; c\u1ee7a file function.php nha.<br \/>\nSau \u0111\u00f3 c\u00e1c b\u1ea1n th\u00eam \u0111o\u1ea1n code g\u1ecdi h\u00e0m breadcrums tr\u00ean v\u00e0o single.php:<\/p>\n<p>[php]&lt;?php seobreadcrumbs(); ?&gt;[\/php]<\/p>\n<p>Gi\u1edd c\u00f4ng vi\u1ec7c c\u1ee7a b\u1ea1n l\u00e0 Ping cho Google Index l\u1ea1i trang c\u1ee7a m\u00ecnh.<\/p>\n<h2>T\u00e1c d\u1ee5ng Breadcrums<\/h2>\n<p>Th\u1ee9 nh\u1ea5t, \u0111i\u1ec1u h\u01b0\u1edbng ng\u01b0\u1eddi d\u00f9ng \u0111\u1ec3 h\u1ecd bi\u1ebft \u0111ang \u1edf \u0111\u00e2u trong website.<\/p>\n<p>Th\u1ee9 hai, hi\u1ec3n th\u1ecb \u0111\u1eb9p h\u01a1n trong k\u1ebft qu\u1ea3 t\u00ecm ki\u1ebfm.<\/p>\n<p>Th\u1ee9 ba, th\u00eam link v\u00e0 trang ch\u1ee7 v\u00e0 th\u01b0 m\u1ee5c, c\u00f3 m\u1ed9t ch\u00fat \u00edt t\u00e1c d\u1ee5ng trong <a href=\"http:\/\/pridio.com\/dich-vu-seo\/\">SEO<\/a>.<\/p>\n<p>B\u1ea1n n\u00e0o c\u00f3 \u0111\u00f3ng g\u00f3p ho\u1eb7c th\u1eafc m\u1eafc g\u00ec v\u1ec1 v\u1ea5n \u0111\u1ec1 n\u00e0y h\u00e3y \u0111\u1ec3 l\u1ea1i b\u00ecnh lu\u1eadn nh\u00e9 \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Breadcrums l\u00e0 c\u00e1i n\u00e0y: N\u00f3 s\u1ebd gi\u00fap k\u1ebft qu\u1ea3 t\u00ecm ki\u1ec3m c\u1ee7a b\u1ea1n tr\u00ean Google c\u00f3 d\u1ea1ng th\u1ebf n\u00e0y: Thay v\u00ec 1 \u0111\u01b0\u1eddng link d\u00e0i ngo\u1eb1ng, Breadcrums gi\u00fap b\u1ea1n c\u00f3 \u0111\u01b0\u1ee3c c\u00e1ch hi\u1ec7n th\u1ecb \u0111\u1eb9p h\u01a1n v\u1edbi ng\u01b0\u1eddi d\u00f9ng, nh\u01b0&#8230;<\/p>\n","protected":false},"author":16,"featured_media":2041,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"tags":[171,170,16,172,173,174,17],"class_list":["post-2039","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo-du-an","tag-breadcrum","tag-breadcrums","tag-quan-tri-wordpress","tag-rdfa","tag-rich-snippet","tag-rich-snippets","tag-wordpress-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts\/2039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/comments?post=2039"}],"version-history":[{"count":0,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts\/2039\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/media\/2041"}],"wp:attachment":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/media?parent=2039"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/tags?post=2039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}