Hello,
recently google’s Search Console (webmaster tools) give me any problems with structured data ‘update’ only in the categories.
I have this problem since I use the transparent header.
I’ve solved this problem with the pages and the articles adding this code into functions.php file
}
//risoluzione problemi dati strutturati pagine ed articoli
function add_mod_hatom_data($content) {
$iso8601_date = get_the_time('c');
$author = get_the_author();
$title = get_the_title();
if( is_single() || is_page() || is_category() || is_tag() ) {
$content .= '<div class="hatom-extra"><span class="entry-title">'.$title.'</span>
ultima modifica: <span class="updated"> '.$iso8601_date.'</span>
da <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
}
return $content;
}
add_filter('the_content', 'add_mod_hatom_data');
Unfortunately the problem still remains for the categories.
May you help me please?
faf