WordPress.org

Ready to get started?Download WordPress

Forums

WP Biographia
[resolved] Author Photo Not Displaying on Author Page (5 posts)

  1. airujo
    Member
    Posted 1 year ago #

    hi,

    i saw a similar post about this issue but there was no solution. i'm using the plugin 'Simple Local Avatars' as recommended and the avatar shows up just fine on the biography at the end of each post but not on the author page itself, see http://suited.myomnipod.com/author/leighann/. just in case i also posted this issue on the SLA plugin forum as i don't know which plugin causes this error.

    i also noticed that i can't separate the link behavior of the links below the biography. i would like the link to more posts to open in the same window as you remain within the blog, while any other links to web and social media should open in a new window.

    any help is appreciated!

    thanks

    http://wordpress.org/extend/plugins/wp-biographia/

  2. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there ...

    i saw a similar post about this issue but there was no solution. i'm using the plugin 'Simple Local Avatars' as recommended and the avatar shows up just fine on the biography at the end of each post but not on the author page itself, see http://suited.myomnipod.com/author/leighann/. just in case i also posted this issue on the SLA plugin forum as i don't know which plugin causes this error.

    So I've taken a look at the source of the author page you've linked to, but the biography at the head of that page isn't one that's produced by WP Biographia. Also, the img tag that looks like it should produce the author's avatar pic, isn't being produced by the WordPress API get_avatar call which is used by both WP Biographia and by Simple Local Avatars; the signature for the img tag produced by that API call is very distinctive ...

    The img tag produced for this post, is one that's emitted by WP Biographia calling get_avatar via the Simple Local Avatars plugin, looks like this ...

    <img alt="Leighann Calentine" src="http://suited.myomnipod.com/wp-content/uploads//2012/10/Leighann-Calentine_avatar-100x100.jpg" class="avatar avatar-100 photo" height="100" width="100">

    ... the giveaway is the avatar and avatar-100 classes; compare this with the img tag on your author page, which looks like this ...

    <img src="" alt="Author Leighann Calentine" align="right" class="alignright size-thumbnail wp-image-215" border="0">

    ... and you can immediately see the difference as well as the glaring lack of a URL for the src argument on the tag. This isn't HTML that's come either from WP Biographia or from Simple Local Avatars.

    I can 100% see that there's an issue here but I'd look at the code in the author.php file for your theme, which looks like it's a custom child theme built on top of the stock Twenty Eleven theme judging by the URL to your theme's CSS which contains /wp-content/themes/twentyeleven_child.

    i also noticed that i can't separate the link behavior of the links below the biography. i would like the link to more posts to open in the same window as you remain within the blog, while any other links to web and social media should open in a new window.

    Ah, you can please some people some of the time but not all people all of the time! The ability to specify how contact links open was added in v3.0 of the plugin back in April of this year after people asked for this feature to be added. But as you correctly point out, this applies to all contact links supported by the plugin; you can't specify individual link options. Your use case is pretty specific to your needs and I'm wary about adding this in as a feature as it has the prospect of making the configuration options for the plugin overly complex and potentially confusing.

    Having said that, you should be able to achieve what you want by using the wp_biographia_links filter and use a custom filter hook function to modify the contents of the links array that's passed to look at each link's URL and modify it to open in a new window if it's not a URL which is local to your site. See here or here for documentation on the plugin's supported filters.

    -Gary

  3. airujo
    Member
    Posted 1 year ago #

    hi gary,

    thanks so much for your detailed response, it is very hard to find a plugin that is supported as well as your and therefore even more appreciated. you pointed me in the right direction, i forgot i changed the author page at some point to a different layout and as soon as i implemented the original WP code for the image it worked just fine.

    thanks also for explaining the thought behind the linking structure, i will look into the custom filter you mentioned.

    thanks again,
    anita

  4. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    You're very welcome. One thing to bear in mind is that in the upcoming v3.3 of the plugin there will be substantial refinement to the filters overall and specifically to the filters around the author's contact links, so that you won't have to do so much potential parsing of a link's URL and attributes. The code for the next release is around 90% complete, so you might want to hang back and wait for the next version. Of course, that depends on how important the different link opening types are to you.

    -Gary

  5. airujo
    Member
    Posted 1 year ago #

    thanks for the heads up, in that case i just wait.

    anita

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.