You have this code:
elseif (17 < $count && $count <= 27 && $paged === 1) :
if ($count === 10) echo 'DIV/CONTENT BEFORE THE NEXT 10 POST GOES HERE';
The first conditional fails when 10 === $count
and so the second conditional can never succeed.
As your while loop executes (in a structure that WordPress calls The Loop, calling function the_post()
to advance through the list of posts you are processing to generate this web page) $count
is incremented as a way of keeping track of which post the code is working on.
When Bernie Sanders is being processed $count === 1
, when we get to Drake’s Album $count === 4
and so on until every post on the page has been rendered. The code doesn’t have sections of posts with their own counts, there’s just a count from the top, so your Jeep ad needs to be inserted when $count === 15
according to your picture. I’m not completely sure, as you have a block of 6 posts labelled as “next 9.”