badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Missing hentry values (author, update)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25999
    gitcommand
    Participant

    I have been using the Attitude theme for a few weeks now, but I noticed that Google Webmaster tools will complain because the theme will not generate hentry values for “author” and “update”.

    I spent some time tinkering with the content-extensions.php file tonight from /attitude/library/structure, and I found that I can generate those hentry values by adding:
    <span class="vcard author post-author"><span class="fn">
    Around the PHP code with “the_author();” and adding:
    <span class="post-date updated">
    Around the PHP code with “the_time(get_option(‘date_format’));
    These were near line 318 and line 348. It seemed to break the cp() function call, so I had to replace it with a similar the_author function call.

    It seems to make Google Webmaster tools happy now when testing pages with the Structured Data Testing Tool, but it would be nice if these values were generated by the theme itself. It will be a pain having to make this change every time there is an update to the theme.

    Thanks,
    levidsmith.com

    #26028

    Hi gitcommand,

    You mean to add this vcard value in line around 308 to line 348 this value <div class="by-author vcard author"><span class="fn"> and <span class="post-date updated">

    Thanks for your suggestion and help. We will update it in our upcoming version.
    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.