New Landing › How can we help? › Themeforest Theme Support › Dante › Structured Data > hentry error
Hi. We noticed a strange error in Webmaster Tools. Structured Data > hentry Error Type Missing: author 16 Items with Error
I tried to use this page and ifno to solve it but I can’t do it. The error is on pages like this: /?portfolio=the-name
Please advice.
Hi,
Can you give your website address to look? Did that happen in our demo too??
Let us know,
Thanks, laranz.
Try to add this in functions.php
function add_hatom_data($content) { $t = get_the_modified_time('F jS, Y'); $author = get_the_author(); $title = get_the_title(); $posttype = get_post_type( get_the_ID() ); if ( $posttype = "portfolio" ) { $content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; } return $content; } add_filter('the_content', 'add_hatom_data');
Big thanks Laranz. I’ve added the code and will see if the errors are gone tomorrow.
Kind regards
Hi again. Sorry, but that killed the whole site. I had to remove it. Please advice.
Did you add the code before this ?> or cover the code with the <?php .. your code.. ?> like this at the end.
?>
<?php .. your code.. ?>
So that works?
I hope so. I’ll wait until tomorrow to see the results after the next crawl.
Best regards
ok. Great. Thanks Laranz Let us know
-Rui
Hi @BallouHosting,
Keep us update 🙂
Hi again. It looks like it is working now. I get the author in the webmaster tools.
Good news. Thanks Laranz -Rui
I’M having the same problem.
I noticed there was a private reply here, so I wonder if the solution linked above should be good.
I have those 3 items missing :
Missing: author Missing: entry-title Missing: updated
Thanks
You must be logged in and have valid license to reply to this topic.