• Hi everyone!

    I am getting the following errors on ALL single product pages of woocommerce when testing structured data through google:

    Error: At least one field must be set for HatomEntry.
    Error: Missing required field “entry-title”.
    Error: Missing required field “updated”.
    Error: Missing required hCard “author”.
    Error: At least one field must be set for HatomEntry.
    Error: Missing required field “entry-title”.
    Error: Missing required field “updated”.
    Error: Missing required hCard “author”.

    Is there a way to fix this? I am not sure where to input the required fields…

    any help appreciated!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter Elektra3

    (@elektra3)

    UPDATE: tried to input the following into single-product.php:

    //add hatom data to single product description
    function add_mod_hatom_products($content) {
    $t = get_the_modified_time(‘F jS, Y’);
    $author = get_the_author();
    $title = get_the_title();
    if(is_product()) {
    $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(‘woocommerce_single_product_summary’, ‘add_mod_hatom_products’);

    but still no luck.

Viewing 1 replies (of 1 total)
  • The topic ‘HATOM entry errors’ is closed to new replies.