colefire88
Forum Replies Created
-
Hi,
The error was showing up before I installed wordfence plugin. I thought maybe there was a corrupted file or something. The error is no longer showing up. I went to a different theme and it seemed to fix the issue. Ill re-post if it occurs again.Forum: Themes and Templates
In reply to: [Twenty Fifteen] How to show TIME and date of posts?This only fixes it on the main landing page. You will still have missing author missing updated for the other pages.
Forum: Themes and Templates
In reply to: [Twenty Fifteen] How to show TIME and date of posts?I happen to find a fix at the attached link for the missing updated missing author error coming up in webmaster tools.
http://www.drafie-design.nl/correct-hatom-errors-in-google-webmaster-tools/I added the below code to my functions.php and it worked. Make sure not to copy and paste anywhere within other code under the editor otherwise you will get an error. I’m hoping when webmaster tools updates this will be the permanent fix. It did show as being fix when I did a live test of it.
function hatom_mod_post_content ($content) {
if ( in_the_loop() && !is_page() ) {
$content = ‘<span class=”entry-content”>’.$content.'</span>’;
}
return $content;
}
add_filter( ‘the_content’, ‘hatom_mod_post_content’);//add hatom data
function add_suf_hatom_data($content) {
$t = get_the_modified_time(‘F jS, Y’);
$author = get_the_author();
$title = get_the_title();
if (is_home() || is_singular() || is_archive() ) {
$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_suf_hatom_data’);I’m also in the same boat with twenty fifteen. Missing author and missing updated
I’m In the same boat. Updated missing and author missing on my pages.