• Resolved bolsta

    (@bolsta)


    Hi Guys,

    I have some errors in Google webmaster tools. The errors are:
    missing author
    missing entry-title
    missing updated

    I have found solutions to fix this on other themes using a single.php but our theme doesn’t have this php.

    Is there a different php I should edit or is there another way to fix this?

    Thanks heaps.

    Kind Regards

    Bol

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Bol,
    where (which page) do you have this error?

    Thread Starter bolsta

    (@bolsta)

    Hi D4z. I have all three errors on the home page and i have
    missing entry-title
    missing updated
    on about 10 others

    Regards Bol

    Thread Starter bolsta

    (@bolsta)

    Hi D4z. So i am not sure the best way to fix these errors. Do you know what I can do?

    Thanks mate.

    Kind Regards

    Bol

    https://www.bamb-u.com

    Thread Starter bolsta

    (@bolsta)

    Hello Customizr’s. I have found a solution (I think).

    I found this code

    //mod content
    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_mod_hatom_data($content) {
    $t = get_the_modified_time(‘F jS, Y’);
    $author = get_the_author();
    $title = get_the_title();
    if ( is_single() || is_page()) {
    $content .= ‘<div class=”hatom-extra”><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_mod_hatom_data’);

    It seems to have solved the issues. I copied it into my Child Theme function.php

    Regards

    Bol

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘missing author, missing entry-title, missing updated’ is closed to new replies.