%2$s', //esto deberia ser un h2 esc_url(get_permalink(2079) ) , __('Contributors', 'abedul')); ?> ';print_r($authors); echo ''; echo '
'; foreach ($authors as $key => $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); echo '
'; echo '
'; if (have_posts()): while ($query -> have_posts()) : $query -> the_post(); the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); //y esto un h3. endwhile; else: // If no content, include the "No posts found" template. get_template_part( 'template-parts/content', 'none' ); endif; wp_reset_postdata(); printf( '', esc_url( get_author_posts_url( $author_ID ) ), __('All articles', 'abedul')); ?>