'; $contributors_query = new WP_Query( array( 'pagename' => $contributors_slug) ); //echo '
'. print_r($contributors_query,true).'
'; //echo '
'. print_r($contributors_query->post->post_title,true).'
'; printf( '

%2$s

', esc_url(get_permalink($contributors_query->post->ID) ), $contributors_query->post->post_title); if ( $contributors_query->has_posts() ): while ($contributors_query->has_posts()) : the_post(); echo 'hay un post'; printf( '

%2$s

', esc_url(get_permalink($contributors_query->post->ID) ), $contributors_query->post->post_title); endwhile; wp_reset_postdata(); else: echo 'contributors query has no posts'; endif; ?>
$value): $author_ID = $authors[$key]->ID; $author_data = get_userdata($author_ID); $author_post_count = count_user_posts($author_ID); ?>
user_email)): echo get_avatar($author_data->user_email, 60); endif; ?>
', //esto deberia ser un h2 esc_url( get_author_posts_url( $author_ID ) ), $author_data->display_name); // Here starts the query work. $is_sticky = get_option('sticky_posts'); $args = array( 'author' => $author_ID, 'posts_per_page' => 2, 'ignore_sticky_posts' => false, 'post__not_in' => $is_sticky, 'tax_query' => array( array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-quote', 'post-format-aside', 'post-format-status', 'post-format-chat', 'post-format-link',), 'operator' => 'NOT IN', ), ), ); $query = new WP_Query($args); //echo '
'. print_r($query,true).'
'; if (have_posts()): while ($query -> have_posts()) : $query -> the_post(); the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); //y esto un h3. endwhile; wp_reset_postdata(); endif; printf( '', esc_url( get_author_posts_url( $author_ID ) ), __('All articles', 'abedul')); ?>