Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter RaulMV

    (@raulmv)

    It is great the code works quite well just by giving an ID to the php tags as shown in this link you gave me.

    Thanks again Hakkim!

    Just to help others with the same problem. The tags I had outside the loop should contain an ID and the syntax should be like this (as shown in the link above):

    <?php the_author_meta('display_name', 1); ?>

    instead of what I had before:

    <?php the_author(); ?>

    Thread Starter RaulMV

    (@raulmv)

    I will do so asap and come back to the forum if that’s not working. Thanks Hakkim for your kind and useful replies.

    Thread Starter RaulMV

    (@raulmv)

    Thanks Hakkim, I didnt have a chance to try this option yet. I just want to let you know that the ’80’in <?php echo get_avatar( get_the_author_email(), '80' ); ?> it is not actually an ID it is the size of the thumbnail. That’s the way the API works.

    If that is the problem, I can set a user ID so I can display the author info outside the loop. Any idea how to give the author an ID?

    Thread Starter RaulMV

    (@raulmv)

    Thanks Hakkim,

    I tried that and it doesn’t work neither.

    This is the code I have in author-top.php

    <!-- get author bio **RAUL -->
        <!-- This is the author info displayed at the top of each page -->
    	<div id="author-bio">
    		<div class="author-image"><?php echo get_avatar( get_the_author_email(), '80' ); ?></div>
    		<div class="author-txt">
    			<h2 class="author-name" id="clickme"><?php the_author(); ?></h2>
    			<p class="toggle author-description"><?php the_author_description(); ?></br>
    			<a href="http://www.linkedin.com/in/raulmvicente"><img class="author-social" src="http://www.webleria.com/wp-content/themes/spun/images/linkedin_circle_color.png"></a>
    			<a href="http://www.twitter.com/raulmvicente"><img class="author-social" src="http://www.webleria.com/wp-content/themes/spun/images/twitter_circle_color.png"></a>
    			<a href="https://plus.google.com/116575236589076788314?rel=author"><img class="author-social" src="http://www.webleria.com/wp-content/themes/spun/images/google_circle_color.png"></a></p>
    		</div>
    	</div>
    
    <script>
    $('#clickme').click(function() { $( '.toggle' ).animate({ "height": "toggle", "opacity": "toggle" }, "slow" )});
    </script>

Viewing 4 replies - 1 through 4 (of 4 total)