|
#1
Mar 29, 2013, 07:26 PM
|
|
Need help with Author Bio Coding
So I want to add author bio to end of each post, modifying single.php
below is the code snippet
<div class="post-bodycopy cf">
<?php the_content(); ?>
<!-- patch for author bio munchy_cool -->
<!-- <?php echo get_avatar( get_the_author_meta('email') , '80' , ' ' ); ?> -->
Written by <?php the_author_link(); ?>
<p><?php the_author_meta('description'); ?></p>
<p><a href="http://facebook.com/<?php the_author_meta('facebook_profile'); ?>" target="_blank"><img src="mysite.com/image.png" width="16" height="16" alt="Facebook" /></a>
<a href="http://twitter.com/<?php the_author_meta('twitter_profile'); ?>" target="_blank"><img src="mysite.com/image2.png" width="16" height="16" alt="Twitter" /></a><br /></p>
<!-- end of patch -->
Problem 1
<!-- <?php echo get_avatar( get_the_author_meta('email') , '80' , ' ' ); ?> -->
is not working , display a '80 on the page
Problem 2
the facebook and twitter images do not appear is 16,16 even though that's what I set them to above, any help would be appreciated.
Thanks
|
#2
Mar 29, 2013, 07:37 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
1) get_avatar is not in the limited php code allowed in the virtual templates
2) if you are on version 1.1.3, do you have patch 113-06 applied?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Mar 29, 2013, 08:30 PM
|
|
yes sir, the patch is applied ..
anything on the second problem?
|
#4
Mar 30, 2013, 03:29 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
What is the URL?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Mar 30, 2013, 07:25 AM
|
|
the website is a news website so I have not yet pushed the changes online, I am testing on my local wordpress installation, I can attach a screenshot if needed of my local test page
|
#6
Mar 30, 2013, 10:07 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
what plugin are you using to put the fac ebook and twitter info in the author meta?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
|