New Landing How can we help? Themeforest Theme Support Dante Structured Data > hentry error

Viewing 15 posts - 1 through 15 (of 19 total)
  • Posted in: Dante
  • #144802
    BallouHosting
    Member
    Post count: 94

    Hi.
    We noticed a strange error in Webmaster Tools.
    Structured Data > hentry
    Error Type
    Missing: author
    16 Items with Error

    I tried to use this page and ifno to solve it but I can’t do it.
    The error is on pages like this: /?portfolio=the-name

    Please advice.

    #144918
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Can you give your website address to look? Did that happen in our demo too??

    Let us know,

    Thanks,
    laranz.

    #144937
    BallouHosting
    Member
    Post count: 94
    This reply has been marked as private.
    #145010
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Try to add this in functions.php

    function add_hatom_data($content) 
    {
        $t = get_the_modified_time('F jS, Y');
        $author = get_the_author();
        $title = get_the_title();
        $posttype = get_post_type( get_the_ID() );
    	if ( $posttype = "portfolio" ) {
            $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_hatom_data');

    Let us know,

    Thanks,
    laranz.

    #145028
    BallouHosting
    Member
    Post count: 94

    Big thanks Laranz.
    I’ve added the code and will see if the errors are gone tomorrow.

    Kind regards

    #145036
    BallouHosting
    Member
    Post count: 94

    Hi again.
    Sorry, but that killed the whole site.
    I had to remove it.
    Please advice.

    #145044
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Did you add the code before this ?> or cover the code with the <?php .. your code.. ?> like this at the end.

    Let us know,

    Thanks,
    laranz.

    #145049
    BallouHosting
    Member
    Post count: 94
    This reply has been marked as private.
    #145085
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    So that works?

    Let us know,

    Thanks,
    laranz.

    #145096
    BallouHosting
    Member
    Post count: 94

    I hope so.
    I’ll wait until tomorrow to see the results after the next crawl.

    Best regards

    #145109
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    ok. Great. Thanks Laranz
    Let us know

    -Rui

    #145140
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi @BallouHosting,

    Keep us update 🙂

    Let us know,

    Thanks,
    laranz.

    #145705
    BallouHosting
    Member
    Post count: 94

    Hi again.
    It looks like it is working now.
    I get the author in the webmaster tools.

    Best regards

    #145713
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Good news. Thanks Laranz
    -Rui

    #222863
    Frankytank
    Member
    Post count: 97

    Hi,

    I’M having the same problem.

    I noticed there was a private reply here, so I wonder if the solution linked above should be good.

    I have those 3 items missing :

    Missing: author
    Missing: entry-title
    Missing: updated

    Thanks

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register