In addition to this site I have a personal blog যেখানে, amongst other things, আমি রেসিপি পোষ্ট. I’ve recently discovered google’s new recipe search, and have been looking to implement support for microformats / Microdata. Google provide a tool for checking your markup, called the “সমৃদ্ধ ক্ষুদ্র টুকরা-পোষা পরীক্ষার-ing হাতিয়ার". When I tried validating one of my recipes, I encountered various errors, which have taken me a while to track down and resolve.
1. প্রথম সমস্যা লেখকের তথ্য দিয়ে ছিল / hrecipe অধ্যায়
রহস্যজনক-tion:
আপনি একটি Google PRO-ফাইল প্রয়োজন. আপনার গুগল প্রোফাইল পেজে কোথাও থেকে সংযুক্ত করতে হবে, rel সঙ্গে = "আমার", এবং আপনার ওয়েবসাইটের মূল ডোমেইন আপনার গুগল প্রোফাইল লিঙ্ক তালিকাভুক্ত করা হবে.
আমি পরিবর্তন একটি সিরিজ সঙ্গে গূঢ় শক্তি থিম সঙ্গে এই অর্জন.
প্রথমত, আমি থেকে কোড যোগ করা Yoast (নিচে দেখানো হয়েছে) functions.php যাও
function yoast_add_google_profile( $contactmethods ) { // Add Google Profiles $contactmethods['google_profile'] = 'Google Profile URL'; return $contactmethods; } add_filter( 'user_contactmethods', 'yoast_add_google_profile', 10, 1);
দ্বিতীয়, আমি আমার ওয়ার্ডপ্রেস প্রফাইল পাতা গিয়েছিলাম এবং আমার Google প্রোফাইলে একটি লিঙ্ক সহ Google প্রোফাইল ক্ষেত্রে ভরা
তৃতীয়, আমি author.php একটি লাইন সম্পাদিত, আবার, উপর ভিত্তি অবহিত-A-tion Yoast থেকে, কিন্তু Mys-Tique থিমের জন্য পরিবর্তন
এই গ্রুপ এ
if(($curauth->user_url<>'http://') && ($curauth->user_url<>'')) echo ' '.__('Homepage:','mystique').' <a href="'.$curauth->user_url.'">'.$curauth->user_url.'</a> '; if($curauth->yim<>'') echo ' '.__('Yahoo Messenger:','mystique').' <a href="ymsgr:sendIM?'.$curauth->yim.'">'.$curauth->yim.'</a> '; if($curauth->jabber<>'') echo ' '.__('Jabber/GTalk:','mystique').' <a href="gtalk:chat?jid='.$curauth->jabber.'">'.$curauth->jabber.'</a> '; if($curauth->aim<>'') echo ' '.__('AIM:','mystique').' <a href="aim:goIM?screenname='.$curauth->aim.'">'.$curauth->aim.'</a> ';
এই অতিরিক্ত লাইন যোগ
if(($curauth->user_url<>'http://') && ($curauth->user_url<>'')) echo ' '.__('Homepage:','mystique').' <a href="'.$curauth->user_url.'">'.$curauth->user_url.'</a> '; if($curauth->yim<>'') echo ' '.__('Yahoo Messenger:','mystique').' <a href="ymsgr:sendIM?'.$curauth->yim.'">'.$curauth->yim.'</a> '; if($curauth->jabber<>'') echo ' '.__('Jabber/GTalk:','mystique').' <a href="gtalk:chat?jid='.$curauth->jabber.'">'.$curauth->jabber.'</a> '; if($curauth->aim<>'') echo ' '.__('AIM:','mystique').' <a href="aim:goIM?screenname='.$curauth->aim.'">'.$curauth->aim.'</a> '; if($curauth->google_profile<>'') echo ' <a href="' . $curauth->google_profile . '" rel="me">Google Profile</a> ';
পরবর্তী, I edited single.php to add rel=“author” to the link to my author page. In the Mystique theme this is found towards the bottom of the file, within the (দীর্ঘ) লাইন(গুলি) নিচে দেখানো হয়েছে. I have added the rel=“author” at the end of the first line before the href=” part
printf(__('This entry was posted by %1$s on %2$s at %3$s, and is filed under %4$s. Follow any responses to this post through %5$s.', 'mystique'), '<a title="'. sprintf(__(" href="'. get_author_posts_url(get_the_author_meta('ID')) .'" rel="author">'. get_the_author() .'</a>', get_the_time(get_option('date_format')),get_the_time(get_option('time_format')), get_the_category_list(', '), '<a title="RSS 2.0" href="'.get_post_comments_feed_link($post->ID).'">RSS 2.0</a>');echo ' ';
তারপর, finally add the same rel=“author” to line 670 core.php এর
এই সঠিকভাবে বাস্তবায়িত হয় যখন আপনি যা সার্চ টুকরো টেস্টিং টুল মধ্যে একটি সাফল্য বার্তা পাওয়া উচিত Veri-fied: লেখক জাহাজ মার্কআপ এই পৃষ্ঠার জন্য Cor-RECT হয়
2. দ্বিতীয় সমস্যা(গুলি) hfeed সঙ্গে ছিল / সেকে-tion hentry ও নিম্নলিখিত অন্তর্ভুক্ত:
মিস হয়-ing প্রয়োজন hCard "লেখক".
সতর্ক-ing: অন্তত একটি ক্ষেত্র Hcard জন্য নির্ধারণ করা আবশ্যক.
সতর্ক-ing: অন্তত একটি ক্ষেত্র HatomEntry জন্য সেট করা আবশ্যক.
সতর্ক-ing: মিস-ing আবশ্যক ক্ষেত্র "এন্ট্রি উচ্চ শিরোনাম".
সতর্ক-ing: মিস হয়-ing প্রয়োজনীয় ক্ষেত্র "আপডেট".
সতর্ক-ing: মিস হয়-ing প্রয়োজন hCard "লেখক".
সমাধান(গুলি):
Use the wordpress editor to edit single.php
কোড খুঁজুন
</pre> <h1 class="title"></h1> <pre>
সঙ্গে এই প্রতিস্থাপন ...
</pre> <h1 class="title entry-title"></h1> <h2 class="updated"></h2> <h2 class="vcard"></h2> <pre>
একটি চূড়ান্ত নোট - মাত্র কপি এবং এই পাতা থেকে কোড পেস্ট করবেন না, as for some reason (আমি অনুমান-ing গৃহস্থালি-AC-Ter encod হয়-ing আছি) এটা কাজ অভ্যস্ত. এখান থেকে কপি এবং উইন্ডোজ নোটপ্যাড মধ্যে পেস্ট করুন. তারপর জয়-dows এর নোট প্যাড থেকে এটি পুনরায় কপি (or any other basic plain-text-only editor) and paste into the wordpress editor. Going via notepad loses any hidden encoding or other data which causes a problem so the code is treated as the plain-text it is supposed to be
আপনি কি মনে করেন? আমাদের একটি মন্তব্য নিচের ড্রপ! আপনি সদস্যতা করতে চান তাহলে উপরের ডানদিকের মেনু এর লিঙ্কে সাবস্ক্রাইব ব্যবহার করুন. এছাড়াও আপনি নীচের সামাজিক লিঙ্ক ব্যবহার করে আপনার বন্ধুদের সাথে ভাগ করতে পারেন. চিয়ার্স.
উত্তর দিন