www.InForGrab.com

Information for Grab

How to fix Missing author Missing entry-title Missing updated in WordPress

  • Home
  • Wiki Web
  • How to fix Missing author Missing entry-title Missing updated in WordPress
fix Missing author Missing entry-title Missing updated in Wordpress

How to fix Missing author Missing entry-title Missing updated in WordPress

Missing author Missing entry-title Missing updated

I stumbled upon this forum and it was truly helpful for I was able to solve these Missing author Missing entry-title Missing updated issues in WordPress. I logged in to my Google Mastertool Account and found out that I have these issues under Structured Data section.

The following scripts will surely fix Missing author Missing entry-title Missing updated in wordpress.

To fix Missing author Missing entry-title in wordpress

1. Copy this script and paste it at the bottom of your functions.php file
————————————————————————–
/* Fix “Missing Author” and “Missing Updated” issue – START */
add_filter( ‘the_content’, ‘custom_author_code’);

function custom_author_code($content) {
if (is_singular() || is_single()) {
return $content .
‘<div class=”hatom-extra”><span class=”title”>’. get_the_title() .'</span> was last modified: <span class=”updated”> ‘. get_the_modified_time(‘F jS, Y’) .'</span> by <span class=”author vcard”><span class=”fn”>’. get_the_author() .'</span></span></div>’ ;
} else {
return $content;
}
}
/* Fix “Missing Author” and “Missing Updated” issue – END */
————————————————————————–

2.  Copy this script and paste it to your css file
————————————————————————–
.hatom-extra {

font-style: italic;

margin-top: 10px;

padding-top: 10px;

border-top: 1px solid rgba(0, 0, 0, 0.08);

}

————————————————————————–

To fix Missing updated in wordpress:

copy this script and paste it again at the bottom of your functions.php file
————————————————————————–

//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 style=”display:none;visibility:hidden;”><span class=”entry-title”>’.$title.'</span> was last modified: <span> ‘.$t.'</span> by <span class=”author vcard”><span class=”fn”>’.$author.'</span></span></div>’;

}

return $content;

}

add_filter(‘the_content’, ‘add_suf_hatom_data’);

Hope these scripts will help you fix Missing author Missing entry-title Missing Updated in wordpress.

How to fix Missing author Missing entry-title Missing updated in WordPress

fix Missing author Missing entry-title Missing updated in WordPress
 
 

How to fix Missing author Missing entry-title Missing updated in WordPress was last modified: May 8th, 2016 by Joyful Mommy

image source:

  • missing author: Joyful Mommy

Tags:

About

* A proud mommy * Full time mom * part time web project manager * fond reader of web forums especially about parenting * loves to share useful information * loves her daughter and husband * happy individual * God Bless everyone!

View all posts by

Please feel free to post comments:

POST A COMMENT


*

Loading Facebook Comments ...