Support » Fixing WordPress » Author tag on no-author page

  • Resolved Viktor Nagornyy


    Hey guys,
    Quick question.
    I’m using author tags to get information from the profile and gravatar, it works great. But, if a page has no author (search) information doesn’t show up. How can I set author so information shows up? Here’s my code:
    <a class="alignleft" href="<?php the_author_meta('user_url'); ?>"><?php echo get_avatar( get_the_author_meta('user_email'), '85', '' ); ?></a><?php the_author_meta('description'); ?>

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Any ideas?

    Well, no help here. I paid on and got an easy answer. If anyone tries to do what I was doing here’s the answer.

    <a class="alignleft" href="<?php the_author_meta('user_url',1); ?>">
    <?php echo get_avatar( get_the_author_meta('user_email',1), '85', '' ); ?>
    <?php the_author_meta('description',1); ?>

    I’m the only author, so it just needed my author ID in there to find me. Which is 1.

    Hope someone else finds this useful!

    I recommend if anyone needs a quick answer for cheap and this forum not helping. =)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Author tag on no-author page’ is closed to new replies.