Exclude Specific Wordpress Author Meta on post

I’d like to know how to exclude meta for multiple specific users. The code below on excludes ‘user1’ right now, but I’d like to exclude multiple users.

[php]<?php if(get_the_author_meta( 'user_nicename')!='user1') : ?>

<?php echo get_avatar( $post->post_author, 64 ); ?>

<?php if(get_the_author_meta( 'first_name') != '' && get_the_author_meta( 'last_name') != '' ) : ?> <?php the_author_meta( 'first_name'); ?> <?php the_author_meta( 'last_name'); ?> <?php else: ?> <?php the_author_meta( 'user_nicename'); ?> <?php endif; ?>

<?php the_author_meta( 'description' ); ?>

<?php endif ?>[/php]

Thanks in advance for the help.

[php]if(!preg_match("/^((user1)|(user2)|(user3))$/",get_the_author_meta( ‘user_nicename’))) : ?>[/php]

Fantastic! Thank you for the help.

Sponsor our Newsletter | Privacy Policy | Terms of Service