Your Time:
Our Time:
← Back to discussions

Google search console microformats missing author and updated

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 9 replies, 3 voices, and was last updated 10 years, 12 months ago by Fem.

  • 2015-09-09 at 7:12 pm
    Support Expired
    #9579
    javierrebelde
    Participant
    • Topics: 3
    • Replies: 7
    • Total posts: 10
    • Post count: 12

    Missing: author
    Missing: updated

    this is from Google search console or google webmaster tools.

    2015-09-10 at 12:30 pm
    #9597
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi javierrebelde,

    Find the follwoing path :

    http://www.aivahthemes.com/hostmev2/wp-content/themes/hostmev2/framework/common/atp_generator/

    find the postmetaStyle() :

    echo '<span>';
    the_time("M j, Y"); 
    echo '</span><span >';
     the_author_posts_link(); 
    echo '</span><span>';

    replace with this code

    echo '<span class="post-date updated" >'; // added class="post-date updated" 
      the_time("M j, Y"); 
    echo '</span><span>';
      the_author_posts_link(); 
    echo '</span class="vcard author post-author"><span>';
     // added class="vcard author post-author"

    Regards,
    krishnaveni

    • This reply was modified 11 years ago by Fem. Reason: code highlight
    2015-09-11 at 4:31 am
    Support Expired
    #9613
    allsafepool
    Participant
    • Topics: 4
    • Replies: 4
    • Total posts: 8
    • Post count: 4

    I’m using the Lifecare Theme and I didn’t see your exact code. I see the following code:

    		// P O S T   M E T A   D A T A 
    		//--------------------------------------------------------
    		function postmetaStyle() {
    		global $format;
    		ob_start();
    			$out = '<div class="post-metadata">'; 
    			echo '<div class="iva_date">';
    			echo '<span class="month">';
    			the_time("M"); 
    			echo '</span>';
    			echo '<span class="day">';
    			the_time("j");
    			echo '</span>';
    			echo '</div>';
    			if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ){
    			echo '<span class="meta-comments"><i class="fa fa-comment fa-fw"></i>';
    			comments_popup_link( __( '0', 'iva_theme_front' ), __( '1', 'iva_theme_front' ), __( '%', 'iva_theme_front' ) );
    			echo '</span>';
    			}
    			echo '<span class="meta-likes">'.iva_love('iva_like') .'</span>';
    			$out .= ob_get_clean();
    			$out .= '</div>';
    			return $out;
    		}	
    // A B O U T   A U T H O R 
    		//--------------------------------------------------------
    		function aboutauthor(){?>
    			<div id="entry-author-info">
    				<div class="author_entry">
    					<div class="author-description">
    						<p><?php the_author_meta('description'); ?></p>
    					</div>
    				</div>
    			</div>
    		<?php 
    		} 
    2015-09-11 at 11:35 am
    #9619
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi allsafepool,

    Find the following path :

    http://www.aivahthemes.com/lifecare/wp-content/themes/hostmev2/framework/common/atp_generator/

    echo '<span class="month">';
    the_time("M"); 
    echo '</span>';
    echo '<span class="day">';
    the_time("j");
    echo '</span>';
    echo '</div>';

    replace with this code

    echo '<span class="month post-date updated">';
    the_time("M"); 
    echo '</span>';
    echo '<span class="day post-date updated">';
    the_time("j");
    echo '</span><span class="vcard author post-author"><span class="fn">';
    <?php the_author(); ?>
    echo '</span></span></div>';
    2015-09-15 at 1:42 am
    Support Expired
    #9645
    allsafepool
    Participant
    • Topics: 4
    • Replies: 4
    • Total posts: 8
    • Post count: 4

    The <?php the_author(); ?> line blanks out my website. If I do not include that line of code, my website loads normally. Can you please advise with that line of code? Thanks.

    echo '<span class="month post-date updated">';
    the_time("M"); 
    echo '</span>';
    echo '<span class="day post-date updated">';
    the_time("j");
    echo '</span><span class="vcard author post-author"><span class="fn">';
    <?php the_author(); ?>
    echo '</span></span></div>';
    2015-09-15 at 1:57 pm
    #9657
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi allsafepool,

    Missing: author is showing because of not displaying the <?php the_author(); ?> and we need to add some classes to <span></span>

    Regards,
    krishnaveni

    2015-09-15 at 11:31 pm
    Support Expired
    #9671
    allsafepool
    Participant
    • Topics: 4
    • Replies: 4
    • Total posts: 8
    • Post count: 4

    But, I am saying that when I include <?php the_author(); ?>, my website becomes blank. If I leave it out, my website is ok.

    2015-09-16 at 10:44 am
    #9678
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi allsafepool,

    If you can provide us WP Logins to your website with URL then we can take a closer look at it. Make sure you set the post as private reply so that only admin can see your wp-logins.

    Regards,
    krishnaveni

    2015-09-19 at 7:47 pm
    Support Expired
    #9751
    javierrebelde
    Participant
    • Topics: 3
    • Replies: 7
    • Total posts: 10
    • Post count: 12

    Ok and then I just need to copy the file atp_generator.php in the child theme root folder or in

    hostmev2-child/frameworks/common/atp_generator.php

    2015-09-21 at 11:10 am
    #9766
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    No need to copy in child theme.

    <?php the_author(); ?> in this line just remove <?php ?>

    Check it once in root folder only.

You must be logged in to reply to this topic.