• Resolved Prateek Mondal

    (@prateek-mondal)


    Hi alex,
    I am using gamepress parent theme and also gamepress pro theme as child theme. My website is http://www.techwhoop.com
    I have modified the theme a lot. But when I am checking my website in google rich snippet tool, it gives the errors. like–

    Warning: Missing required field “entry-title”.
    Warning: Missing required field “updated”.
    Warning: Missing required hCard “author”.

    If you have a solution regarding this please share. Otherwise please tell in which php file I will get these code
    <h1 class=”title single-title”><?php the_title(); ?></h1>
    and
    <span class=”post_date”><?php the_time(‘j F,Y’); ?></span>
    and
    <span class=”theauthor”><?php the_author_posts_link(); ?></span>

    Basically I have to change these code a little bit for solve the issue.
    I didn’t get those code in theme’s single.php file. Please help me.

    http://wordpress.org/themes/gamepress/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author alex27

    (@alex27)

    You know you could do a simple search in theme files, right? 🙂
    Check these files:

    • content-single.php
    • content-page.php
    • content-smallthumb.php
    Thread Starter Prateek Mondal

    (@prateek-mondal)

    Thank you very much. I got those codes in php files which you mentioned. Solved the rich sinnepts problem. yipee 🙂 thanks a lot.

    @prateek Mondal

    I’m seeing the same results using Google’s Structured Data Testing Tool. What exactly did you do to correct the errors?

    Hay Prateek try adding the following code in your functions.php file:
    It worked for me.

    //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’ve been looking for an easy way to fix this issue on my website for a while and the above code in the functions.php file works PERFECTLY! Thanks!

    Oliver do you not get this error ?

    Error: This information will not appear as a rich snippet in search results, because it is contained in a hidden HTML element. Except in special circumstances, Google won’t display content that is not visible to the user. You should mark up the text that actually appears to your users when they visit your web pages.

    When i add the code that is what i get

    http://www.repairsuk.co.uk/how-to/asus/change-charging-port-nexus-7

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to fix warning missing required field entry-title in rich snippet tool’ is closed to new replies.