WordPress.org

Ready to get started?Download WordPress

Forums

archive problem (2 posts)

  1. yrdnsa
    Member
    Posted 9 years ago #

    whay this does not work?:
    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class="pagetitle"> belong to<?php the_author('nickname'); ?></h2>

  2. Kafkaesqui

    Posted 9 years ago #

    Possibly because the_author() is intended for use inside The Loop. Any such template tags used out of The Loop often will not work as expected.

    See this thread for ways to collect and display current author profile data:

    http://wordpress.org/support/topic/27554

    Also see:

    http://codex.wordpress.org/Author_Templates

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags