Add widget area after specific number of posts on blog view?
-
Good evening, what I’d like to achieve is, add widget area after a specific number of posts on my blog view.
I already know how to add widget areas, and I’ve figured I could make a count with PHP in order to create the widget area after for example 5 posts, but I don’t think that’s an elegant way of doing this.
Is there another way, or will I have to go with the ugly PHP way?
Please note, I planned on doing this count inside the have_posts() loop since I don’t think there is any other way, but if there is, please enlighten me.
- The topic ‘Add widget area after specific number of posts on blog view?’ is closed to new replies.