Finally! I figured it out:
<?php
$featured_args = array(
‘post__in’ => get_option( ‘sticky_posts’ ),
);
$featured_loop = new WP_Query( $featured_args );
$counter = 1;
while( $featured_loop->have_posts() && $counter < 5 ) :
$featured_loop->the_post();
?>
(The post loop…)
<?php $counter++; endwhile; wp_reset_postdata(); ?>
I’ve tried things really close, but my mistake was use initially a var $i, as I thought it’s a too common name, so I named it $counter and problem solved! Thanks all for the help ??