WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP Biographia double author issue (3 posts)

  1. brandcaul
    Member
    Posted 2 years ago #

    Hey guys,

    I've installed a plugin called WP Biographia to help implement the rel=author tag. The problem is that when you look at single posts the default twenty eleven theme adds in the author details and image below the WP Biographia author info. http://addblog.co.za

    This problem doesnt occur on the blog feed but for some reason it happens on each single post?

    Anyone else had this problem or know how to fix it??
    B

  2. vicchi
    Member
    Posted 2 years ago #

    Hi ... first the short answer ... this is a well-known and documented theme issue; see FAQ number 6 on WP Biographa's details on the WordPress Plugin Repository ... it says this

    I've installed and configured WP Biographia and now I see not one but two differing Biography Boxes; what's going on?
    There's probably one of two things going on here. Firstly, you've already got another plugin that makes a Biography Box installed and active and this plugin, as well as WP Biographia, are doing their job properly. Secondly, the theme you're using hard codes a Biography Box into the theme templates. Both the TwentyTen and TwentyEleven themes supplied as part of a standard WordPress install do this.

    The slightly longer answer is that to fix this you'll need to comment out or remove some code from the theme's template files. For TwentyEleven you'll need to look at the single post template, which will probably be located in wp-content/themes/twentyeleven/content-single.php. If you look at line 54 you'll see something like this ...

    <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>

    ... you'll need to comment out/remove the code that hard-codes the theme's biography from line 54 down to line 69, which ends ...

    <?php endif; ?>

    I'd love to be able to code around this in the plugin, but the way the theme is constructed doesn't make this possible sadly.

    -Gary

  3. vicchi
    Member
    Posted 2 years ago #

    Has my last post helped? If so, can you please mark this post as resolved? (As it's not tagged as a post specific to the plugin then only the original poster can flag it as resolved).

    Thanks

    -Gary

Topic Closed

This topic has been closed to new replies.

About this Topic