WordPress.org

Ready to get started?Download WordPress

Forums

Frisco for BuddyPress
Google Authorship Error (2 posts)

  1. codegene
    Member
    Posted 1 year ago #

    How to fix “missing required fields” warnings in Rich Snippets Testing Tool for wordpress blog Authorship in google search results : http://www.google.com/webmasters/tools/richsnippets

    Warning: Missing required field "entry-title".
    Warning: Missing required field "updated".
    Warning: Missing required hCard "author".

    Other blogs have a solution for this : http://tobbynews.com/warning-missing-required-field-entry-title-missing-required-field-updated-missing-required-hcard-author.html

    http://technotes.khitrenovich.com/fix-missing-required-fields-warnings-rich-snippets-testing-tool/

    How can we do the same for frisco theme ?

    I am using this plugin : http://wordpress.org/extend/plugins/google-authorship-for-multiple-writers/installation/

    http://wordpress.org/extend/themes/frisco-for-buddypress/

  2. David Carson
    Member
    Theme Author

    Posted 1 year ago #

    This is not really a Frisco theme issue. I don't think it's a BuddyPress issue either. Very specific customization.

    I didn't look at the plugin being used or proposed solutions. I don't think this sort of thing requires a plugin. With a little bit of work, you can put this right in the theme.

    By default, single.php/index.php/archive.php templates for the default BuddyPress theme have an .author-box div and the author link will link directly to the author's BuddyPress profile. For example:

    <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ); ?></p>

    You can change this so that it links to an author archive though.

    <p>By <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php printf( __( '%s' ), get_the_author() ); ?></a></p>

    Then just follow Google's directions on this and configure for your needs. Most likely all you need to do is put a link to the author's Google profile in their WordPress profile description and add something like this to the top of your archive.php file (code below taken from TwentyEleven Theme modified slightly to add is_author conditional):

    <?php
    // If on author page and a user has filled out their description, show a bio on their entries.
    if ( is_author() && get_the_author_meta( 'description' ) ) : ?>
    		<div id="author-info">
    			<div id="author-avatar">
    				<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 50 ) ); ?>
    			</div><!-- #author-avatar -->
    			<div id="author-description">
    				<?php the_author_meta( 'description' ); ?>
    			</div><!-- #author-description	-->
    		</div><!-- #author-info -->
    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic