My current Wordpress blog displays 20 posts.
I am looking to apply a specific class to posts numbered 2 through 10, and then again from 12 to 20. I do not want the first post or post number 11 to have this class added.
I attempted using CSS selectors like nth-child(3n+1), but that did not provide the desired outcome.
$('.article-box:nth-child(1n+3)').addClass('small-river');
I also experimented with .slice(2,3,4,5,6,7,8) but was unable to achieve the desired repetition effect.
$('.article-box').slice(3,4,5).addClass('small-river');