exclude users from custom listing
-
i’m trying to create a list of users in the system and exclude some of them (pref. by ID/login)
so far I get all users by using the following code (taken from https://www.ads-software.com/support/topic/334681?replies=4 and modified a bit)
but I’ld like to exlude specific users. it’s only 1 line i think but i don’t know the proper syntax.
foreach ( get_users_of_blog() as $author ) : ?> <div id="hcard-<?php echo str_replace( ' ', '-', get_the_author_meta( 'user_nicename', $author->ID ) ); ?>" class="author-profile vcard clear"> <a href="<?php echo get_author_posts_url( $author->ID ); ?>" title="<?php the_author_meta( 'display_name', $author->ID ); ?>"> <?php /* the_author_image($author->ID);'width="130" height="160"'; */ ?> <?php echo get_avatar($author->ID); ?></a> <h2 class="author-name fn n"> <a href="<?php echo get_author_posts_url( $author->ID ); ?>" title="<?php the_author_meta( 'display_name', $author->ID ); ?>"><?php the_author_meta( 'display_name', $author->ID ); ?></a> </h2> <p class="author-bio"> <?php the_author_meta( 'description', $author->ID ); ?> </p><!-- .author-bio --> </div><!-- .author-profile .vcard --> <?php endforeach;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘exclude users from custom listing’ is closed to new replies.