0

I'm sure there has to be a tutorial for this, I just can't find it. I'm also pretty confident there's numerous ways to do this and I'm looking for the best. I've never had to do this before, so I've never asked...

I want to insert a DIV into a list of excerpts. For example, take a look at: http://www.premiumpixels.com/wordpress-themes/ where Orman added a div asking users to subscribe into his excerpts.

0

add a counter to your loop or use a conditional statement with $wp_query->current_post, just before the 'endwhile', and add the div when the counter/post number reaches a certain value. please paste the full code of your template into a http://pastebin.com/ and post the link to it here, if you need more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.