user_email)):
echo get_avatar($author_data->user_email, 60);
endif;
?>
%2$s', //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( '
' ); //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'));
?>