Title: Insert Ads Between Infinite Scroll Posts
Last modified: August 21, 2016

---

# Insert Ads Between Infinite Scroll Posts

 *  [KenazChan](https://wordpress.org/support/users/kenazchan/)
 * (@kenazchan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/insert-ads-between-infinite-scroll-posts/)
 * I am using Pinboard theme and the infinite scroll feature is working fine. However
   I would like to insert Google Adsense post in between posts that loaded by infinite
   scroll. For example among 30 posts, post #12 and #25 are Google Ads and the rests
   are normal posts.
 * I tried to do it by having additional ads insertion flow within index.php main
   loop, but it works only for the first batch of infinite scroll, not working for
   next and remaining batch of load.
 * As a reference, I would like to achieve something like [http://foodgawker.com](http://foodgawker.com).
   Any help would be appreciated! Thanks!

Viewing 1 replies (of 1 total)

 *  [vickera](https://wordpress.org/support/users/vickera/)
 * (@vickera)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/insert-ads-between-infinite-scroll-posts/#post-5076075)
 * Any update on this? I am having the same problem.

Viewing 1 replies (of 1 total)

The topic ‘Insert Ads Between Infinite Scroll Posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/pinboard/1.1.12/screenshot.png)
 * Pinboard
 * [Support Threads](https://wordpress.org/support/theme/pinboard/)
 * [Active Topics](https://wordpress.org/support/theme/pinboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/pinboard/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/pinboard/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 2 participants
 * Last reply from: [vickera](https://wordpress.org/support/users/vickera/)
 * Last activity: [10 years, 12 months ago](https://wordpress.org/support/topic/insert-ads-between-infinite-scroll-posts/#post-5076075)
 * Status: not resolved