[Plugin: User Photo] Output Bug?!
-
Hello you,
there is a quite strange thing occuring in my blog which seems to be a bug to me.I inserted the following code into theme/library/filters.php:
function arras_post_aboutauthor() {
$id = get_the_author_meta('ID');
$output = '<div class="about-author clearfix"><a href="'
. get_author_posts_url($id) . '">'
. userphoto_the_author_photo()
. '<div class="author-meta"><h4>'
. sprintf(__('gepostet von %s', 'arras'), get_the_author_meta('display_name'))
. '</h4>'
. get_the_author_meta('description')
. '</div></div>';
echo apply_filters('arras_post_aboutauthor', $output);
}
Unfortunatlely, what I get as HTML Output is:
<img src="xyz/wp/wp-content/uploads/userphoto/flex.jpg" alt="flex" width="150" height="100" class="photo" />
<div class="about-author clearfix">
(here goes the a tag in a correct way, but has no content)
<div class="author-meta">...</div>
</div>
So the <img> is outside the <div> containing the rest of the author page.
Any ideas?
Thanks a lot in advance!
- The topic ‘[Plugin: User Photo] Output Bug?!’ is closed to new replies.