New answers tagged

1

As of WordPress 4.4.0 you can now use the wp_dropdown_users_args filter. The code is much simpler now: add_filter( 'wp_dropdown_users_args', 'add_subscribers_to_dropdown', 10, 2 ); function add_subscribers_to_dropdown( $query_args, $r ) { $query_args['who'] = ''; return $query_args; }


0

This is in my single.php: <div class="sp-article-author-box-bg"> <div class="sp-article-author-box"> <span class="spbox-right"> <div class="spbox-bio"> <?php if ( $string = xprofile_get_field_data( 'About', get_the_author_meta('ID') ) ) { echo ...


1

To just answer this question.. Hope it's okay to pull this back up ^^ <div class="profile-bio"> <!-- Profile user info bio text --> <?php if ( $string = xprofile_get_field_data( 'About', get_the_author_meta('ID') ) ) { echo '<div class="author-about">'; ...


0

If I understand your problem then this should definitely work. <?php get_header(); $users = get_users( array( 'who' => 'author' ) );//get all the users with author role in an array foreach ( $users as $user ) { //travers the array if($user->caps['administrator']==1)continue; // skip the user if user also have administrative ...


0

There's no need for multiple queries - posts are, by default, ordered by most recent. Just apply a classname for the first post on the first page: <article <?php post_class( $wp_query->current_post === 0 && ! is_paged() ? 'my-awesome-first-post' : '' ) ?> The first post of the first page will have the class my-awesome-first-post. ...



Top 50 recent answers are included