Search Console での「構造化データ(hentry)」エラーの修復方法(テーマPhotos)
目次
「author がありません」の修復は以下の通り。
投稿ページ「content-single.php」
に以下を追加した。(Google+にリンクした)
<a href=”https://plus.google.com/u/1/100480140034701018932″ >Google+ </a>
<span class=”vcard author”><span class=”fn”><a href=”https://plus.google.com/u/1/100480140034701018932″ >結婚式カメラマン</a></span></span>
「updated がありません」の修復は以下の通り。
投稿ページ「content-single.php」
に以下を追加した。
<!—————-updated の表示(非表示記述とした)—————–>
<span class=”entry-date date updated” style=”visibility: hidden;”><a href=”<?php echo get_month_link(get_the_time(‘Y’), get_the_time(‘m’));?>”><?php echo get_the_date(“Y.m.d”);?></a></span>
<!—————-updated の表示(非表示記述とした)—————–>