Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Need help with Author Bio Coding


  #1  
Old Mar 29, 2013, 07:26 PM
munchy_cool
 
14 posts · Mar 2013
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  
Old Mar 29, 2013, 07:37 PM
juggledad's Avatar
juggledad
 
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  
Old Mar 29, 2013, 08:30 PM
munchy_cool
 
14 posts · Mar 2013
yes sir, the patch is applied ..

anything on the second problem?
  #4  
Old Mar 30, 2013, 03:29 AM
juggledad's Avatar
juggledad
 
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  
Old Mar 30, 2013, 07:25 AM
munchy_cool
 
14 posts · Mar 2013
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  
Old Mar 30, 2013, 10:07 AM
juggledad's Avatar
juggledad
 
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

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
New in here and new to coding. AwesomeDude Atahualpa 3 Wordpress theme 6 Oct 22, 2011 04:51 PM
[SOLVED] How to Add Author Description to Page generated by &quot;%author-posts-link%&quot; Steve41 Post-Kicker, -Byline & -Footer 3 Dec 15, 2010 03:46 PM
Styling %author% and %author-posts-link% Aris Post-Kicker, -Byline & -Footer 2 Jul 6, 2010 10:34 PM


All times are GMT -6. The time now is 01:09 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.