Title: If the_author statement
Last modified: August 19, 2016

---

# If the_author statement

 *  [erichambycom](https://wordpress.org/support/users/erichambycom/)
 * (@erichambycom)
 * [16 years ago](https://wordpress.org/support/topic/if-the_author-statement/)
 * I want to make post by certian authors premium content while some are free.
 * Im trying to use
 * <?php if ( the_author(‘XXXXX’) ) { ?>
    Premium Content <?php } else { ?> This
   is premium only <?php } ?>
 * Whihc does seem to work but it also prints the authors name.
 * can i use this without printing the name?

Viewing 1 replies (of 1 total)

 *  [Edward Caissie](https://wordpress.org/support/users/cais/)
 * (@cais)
 * [16 years ago](https://wordpress.org/support/topic/if-the_author-statement/#post-1484761)
 * Have you tried the ‘get_the_author’ function instead?

Viewing 1 replies (of 1 total)

The topic ‘If the_author statement’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Edward Caissie](https://wordpress.org/support/users/cais/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/if-the_author-statement/#post-1484761)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
