Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1160503

    Bark201
    Participant

    How do I add date, time, date modified and author to all posts? I switched from an old theme and I am getting errors in google webmaster. I tried downloading the child theme of theme x but it says access restricted because I didnt buy the plugin but I did!!

    Please help. If you want me to write my site please tell me how to make it private although it is linked to my profile.

    #1160509

    Bark201
    Participant

    I downloaded the child theme, it didnt let me the other day. I just need to know how to fix the above

    #1160520

    Bark201
    Participant
    This reply has been marked as private.
    #1160535

    Bark201
    Participant

    These errors are not in hatom but in article (see screenshot). I tried this code but didnt work, noticed its for hatom and not article:

    /* 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() || is_front_page()) {
          return $content . 
          '<div class="hatom-extra"><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;
       }
    }
    /* Fix "Missing Author" and "Missing Updated" issue - END */

    Did

    #1160557

    Christian
    Moderator

    Hey there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1160591

    Bark201
    Participant
    This reply has been marked as private.
    #1160733

    Bark201
    Participant

    I am getting hentry errors now, last updated and author. How do I get the author showing on all posts and hidden on pages and get the last modified or last updated in without showing in posts?

    #1160734

    Bark201
    Participant

    I think the code fixes it but it shows the last modified in posts, how do I make it hidden?

    #1160745

    Nabeel A
    Moderator

    Hi there,

    I’m not able to access your site at the moment, can you please check if it’s working on your end?

    Thanks!

    #1160746

    Bark201
    Participant

    This is what it looks like:

    property="article:published_time" content="2016-08-29T05:47:41Z" /><meta
    property="article:modified_time" content="2016-09-04T13:36:11Z" /><meta

    Why are there letters inside the date and time, T and Z? Please help.

    #1160749

    Bark201
    Participant

    I was just updating the functions.php with a different code I saw in the forum, didnt help either. It should be accessible now.

    #1160928

    Lely
    Moderator

    Hi There,

    That code you want to remove is not coming from the custom code you have added. The custom code will just add the following:

    <div
    class="hatom-extra" style="display:none;visibility:hidden;"><span
    class="entry-title">blog post</span> was last modified: <span
    class="updated"> August 16th, 2015</span> by <span
    class="author vcard"><span
    class="fn">DDMarkets</span></span></div>

    This part:

    property="article:published_time" content="2016-08-29T05:47:41Z" /><meta
    property="article:modified_time" content="2016-09-04T13:36:11Z" /><meta

    are meta tags. That might be coming from your plugin(might be yoast). It can be remove through plugins settings.
    These link might help:
    https://wordpress.org/support/topic/how-do-i-remove-time-associated-meta-tags-from-yoast-seo/
    http://www.wpbeginner.com/opinion/why-you-should-not-remove-dates-from-your-wordpress-blog-posts/

    #1162585

    Bark201
    Participant

    Thank you for your reply. The custom code is addressing the hentry but not the Article schema tags:

    http://tools.seochat.com/tools/schema-article-generator/

    What is currently missing from the schema tags are author and last modified date. This affects my SEO ranking in all posts. I disabled the tags I suggested and it just removed the entire Article tag, which I do not want. Please help me fix this, the errors are building up in google webmaster as a result of this.

    Its the open graph article tags that I am having issues with.

    #1162593

    Bark201
    Participant

    I am using all in one seo pack

    #1162691

    Bark201
    Participant

    Ok, I tweaked the code a little and it is showing updated and author in hentry. I am going to find out in the next few days if that fixes it.

    I looked more into the Article tags errors and this is what I found as I am using all in one seo pack. I know you are not a fan of schema but any solution will help a lot:

    https://wordpress.org/support/topic/json-ld-error-1/?replies=9

    Note: The aticle errors are still present despite the code in functions.php. The difference is that updated and author were added to hentry so that might fix the errors in google webmaster. I would really like the errors in aricle resolved as well. I still have missing author, missing published date, headline, publisher and date modified in Article.