WordPress.org

Ready to get started?Download WordPress

Forums

HeatMap AdAptive
[resolved] Need help with Structured Data Testing Tool (8 posts)

  1. blood-bone
    Member
    Posted 4 months ago #

    Hi,
    I had been checking if my post is properly set according to Structured Data Testing Tool. I got an error as below:

    Error: Missing required field "updated".

    I tried to find online for the solution & unable to implement the solution. Be link will show you what I need to do to fix this:

    http://www.wpcub.com/fix-missing-required-field-entry-titleupdatehcard-error-in-wordpress/

    I am unable to find the code in single.php

    Below is the error i got from Structured Data Testing Tool:

    http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fjeepexclusive.com%2Fhardtop-for-jeep-wrangler-enjoy-safer-vehicle-without-problem%2F

    Thanks in advance.

  2. blood-bone
    Member
    Posted 4 months ago #

    Hi,
    Is there anyone who can help me out with this ? I am sure it is simple just that I lack technical knowledge. Any help will be appreciated.

  3. stuartwider
    Member
    Theme Author

    Posted 4 months ago #

    Just look in /inc/template-tags.php

    Then edit the time related parts of heatmapthemead_posted_on() function to suit what you want.

  4. blood-bone
    Member
    Posted 4 months ago #

    Thanks stuatwider for the reply.

    I found the line which you have mentioned but changing it did not solve the problem or might be I dint do it the right way.

    I changed the below line from:

    if ( ! function_exists( 'heatmapthemead_posted_on' ) ) :

    To:

    if ( ! function_exists( 'heatmapthemead_posted_on_date_updated' ) ) :

    & I even tried without underscores like:

    if ( ! function_exists( 'heatmapthemead_posted_on date updated' ) ) :

    None of the above fixed the problem. Please tel me how exactly am I suppose to place the code.

  5. stuartwider
    Member
    Theme Author

    Posted 4 months ago #

    I was assuming you would read the code contained in the function I pointed you to, not literally try and change the line containing the function ;)

    Try changing...
    print '<time class="entry-date" datetime="' . esc_attr( get_the_date( 'c' ) ) . '">' . esc_html( get_the_date() ) . '</time>';

    to
    print '<time class="entry-date updated" datetime="' . esc_attr( get_the_date( 'c' ) ) . '">' . esc_html( get_the_date() ) . '</time>';

  6. blood-bone
    Member
    Posted 4 months ago #

    Hey stuartwider,
    Thanks a lot for the reply. I finally got the issue fixed. Thanks for your time.

    Great support.

    Thanks once again.

  7. stuartwider
    Member
    Theme Author

    Posted 4 months ago #

    Glad you got it fixed.
    Don't forget to leave a star rating and review thanks.

  8. blood-bone
    Member
    Posted 4 months ago #

    I have left my review. Thanks for making such a nice wordpress theme.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.