Title: Finding the post authors capability level
Last modified: August 22, 2016

---

# Finding the post authors capability level

 *  [digitd](https://wordpress.org/support/users/digitd/)
 * (@digitd)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/finding-the-post-authors-capability-level/)
 * I am trying to display content based on the Post Authors capability level.
 * As a noob I’m having issues getting this to work
 *     ```
       <?php
       $author_id = the_author_meta('id');
       if ($author_id->wp_capabilities['s2member_level1']==1) {
       echo "AUTHOR IS LEVEL 1";
       }
       ?>
       ```
   
 * What this seems to output is the Author ID which is weird. How do I go about 
   testing for this?
 * Thanks!

The topic ‘Finding the post authors capability level’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [digitd](https://wordpress.org/support/users/digitd/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/finding-the-post-authors-capability-level/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
