Jump to content

Archived

This topic is now archived and is closed to further replies.

mtsurgery

Google Structured Data Errors

Recommended Posts

mtsurgery

There are a few sparse posts on the Pagelines forums regarding "Hatom-feed" errors found within Google Structured Data but I can't seem to dismiss the errors.

 

The following errors in my Google Webmaster Tools >  Search appearance > Structured Data are:

 

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".

 

I am running a licensed version DMS 2.1.3 on Wordpress 3.9.1

 

Can we revisit this issue and have the Admins provide their expertise...

 

Thanks,

 

MT

 

 

 

 

Share this post


Link to post
Share on other sites
Danny

Hi,

 

I will speak to our developers. However, I have just this moment viewed a single post on my DMS test site blog and most of those classes are already there such as entry-title and author.

 

Also there only seems to be one issue for the PageLines blog - http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.pagelines.com%2Fblog


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mtsurgery

Thanks Danny.  Your response is well appreciated.

 

Since my forum post I have researched the web and found a short segment of code that others are using within their Wordpress sites and has eliminated the Hatom errors.

 

Using the Wordpress editor, I was able to insert the following code (see below) into the (dms/functions.php) template file. It did not cause any problems to the functionality of the Pagelines theme.  However, it DID resolve the Hatom errors that I was receiving from Google Structured Data.  The errors dropped off almost immediately after my site was re-crawled and re-indexed by Google.  Just wanted to share that with you so the developers may consider writing the code into the template headers as a permanent fix.  The problem is that during the last several DMS updates, I have had to reinsert the code into the dms/functions.php file following updates.

 

The code I inserted is listed below.

 

 

Thanks,

 

MT

 

 

 

//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');
 

Share this post


Link to post
Share on other sites
Danny

Thanks for sharing.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×