Title: archive problem
Last modified: August 18, 2016

---

# archive problem

 *  [yrdnsa](https://wordpress.org/support/users/yrdnsa/)
 * (@yrdnsa)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/archive-problem-3/)
 * 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>

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/archive-problem-3/#post-254774)
 * Possibly because the_author() is intended for use inside [The Loop](http://codex.wordpress.org/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](http://wordpress.org/support/topic/27554)
 * Also see:
 * [http://codex.wordpress.org/Author_Templates](http://codex.wordpress.org/Author_Templates)

Viewing 1 replies (of 1 total)

The topic ‘archive problem’ is closed to new replies.

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/archive-problem-3/#post-254774)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
