DIY میڈیا ہوم علامت

اپنے گھر تھیٹر اور ہائی فائی سیٹ اپ کے ڈیزائن اور پیدا کرنے کے لئے الٹی سائٹ.

0ورڈپریس علامتRich Snippets code for Mystique 2.x

In addi­tion to this site I have a per­son­al blog جہاں, amongst oth­er things, I post recipes. I’ve recently dis­covered google’s new recipe search, and have been look­ing to imple­ment sup­port for micro­formats / microdata. Google provide a tool for check­ing your markup, called the “امیر کترن-پالتو جانور ٹیسٹ کر کے آلے". When I tried val­id­at­ing one of my recipes, I encountered vari­ous errors, which have taken me a while to track down and resolve.

Each one is inde­pend­ent, but related, and in all cases the num­ber of errors you are likely to encounter depends largely on the theme you use with your blog. In my case, using the mys­tique theme, I encountered a sub­stan­tial num­ber of errors.

1. The first prob­lem was with the author inform­a­tion / hrecipe sec­tion

The solu­tion:

You need a google pro­file. Your google pro­file must be linked from some­where on the page, with rel=“me”, AND the main domain of your web­site must be lis­ted on your google pro­file links.

I achieved this with the Mys­tique theme with a series of modi­fic­a­tions.

اولا, I added the code from Yoast کی (as shown below) to functions.php

Second, I went to my word­press pro­file page and filled in the google pro­file field with a link to my google pro­file

Third, I edited a line to author.php, پھر, based on inform­a­tion from yoast, but changed for the Mys­tique theme

in this sec­tion

add this extra line

اگلے, I edited single.php to add rel=“author” to the link to my author page. In the Mys­tique theme this is found towards the bot­tom of the file, with­in the (long) لائن(ے) as shown below. I have added the rel=“author” at the end of the first line before the href=” part

Then, finally add the same rel=“author” to line 670 of core.php

When this is cor­rectly imple­men­ted you should get a suc­cess mes­sage in the snip­pets test­ing tool which reads Veri­fied: Author­ship markup is cor­rect for this page

2. The second problem(ے) were with the hfeed / hentry sec­tion and included the fol­low­ing:

مس ING ضرورت hCard "مصنف".
انتباہ والے: کم از کم ایک میدان Hcard کے لئے مقرر کیا جانا چاہیے.
انتباہ والے: کم از کم ایک میدان ہیٹ-O-mEntry کے لئے مقرر کیا جانا چاہیے.
انتباہ والے: مس کر مطلوبہ فیلڈ "داخلے کی عنوان".
انتباہ والے: مس ING مطلوبہ فیلڈ "اپ ڈیٹ".
انتباہ والے: مس ING ضرورت hCard "مصنف".

The solution(ے):

Use the word­press edit­or to edit single.php

Find the code

replace this with…

A final note — Don’t just copy and paste the code from this page, as for some reas­on (I’m guess­ing char­ac­ter encod­ing) it wont work. Copy it from here and paste into win­dows note­pad. Then re-copy it from win­dows note­pad (or any oth­er basic plain-text-only edit­or) and paste into the word­press edit­or. Going via note­pad loses any hid­den encod­ing or oth­er data which causes a prob­lem so the code is treated as the plain-text it is sup­posed to be

ذیل میں تبصرہ کی طرف سے ہمیں اپنے خیالات بھیجیں کریں! آپ کے سبسکرائب کرنا چاہتے ہیں تو سب سے اوپر دائیں مینو پر لنک سبسکرائب استعمال کریں. آپ بھی ذیل سماجی روابط کا استعمال کرتے ہوئے کی طرف سے اپنے دوستوں کے ساتھ اس کا اشتراک کر سکتے ہیں. چیرس.

جواب چھوڑیں