Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1184975
    maheidem
    Participant

    I´ve been battling with these errors for a while, i´ve manage to drop from 80 to 36. Now even with some plugins helping I still get a few errors that I can´t find a way to get rid off.

    The interesting part now is that they are all within pages (blog, etc..) as if the tags are missing for the articles within the the blog page (but there are no errors for the blog posts them self).

    My site is http://www.drone42.com (using X-Theme 4.4.2)
    some of the pages that are accusing error are:
    /blog/
    /tag/fotos-com-drone/
    /author/mmoliveira/

    and so on.

    Could any one shed a light on this?

    #1185038
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    Please try to add this code in your child theme’s functions.php. This is a revised version from the other topic. We added the hidden class so that this will not show up at the end of your page.

    // Fix "Missing Author" and "Missing Updated" issue - START
    // =============================================================================
    add_filter( 'the_content', 'custom_author_code');
    
    function custom_author_code($content) {
       if (is_singular() || is_single()) {
          return $content . 
          '<div class="hatom-extra hidden"><span class="title">'. get_the_title() .'</span> was last modified: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></span></div>' ;
       } else {
          return $content;
       }
    }
    // =============================================================================

    Please let us know if this works out for you.

    #1185268
    maheidem
    Participant

    Thanks, i´ll try this tonight

    #1185270
    Prasant Rai
    Moderator

    Let us know how it goes.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1184975 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>