• 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)
  • Thread Starter Viktor Nagornyy

    (@viktorix)

    Any ideas?

    Thread Starter Viktor Nagornyy

    (@viktorix)

    Well, no help here. I paid on WPQuestions.com 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', '' ); ?>
    </a>
    <?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 WPQuestions.com 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.