I am trying to: Load an archive with infinite scroll:
hidden link
The loop is configured to load 16 items per page.
For every 4rd and 9th index, i'm showing ad from Google Adsense using Ads Pro plugin.
The infinite scroll works when no ads are running, but as soon as ads short code is added, the infinite scroll stops working.
I'm using the code below:
<!-- wpv-loop-start -->
<wpv-loop wrap="12">
[wpv-item index=3]
<div class="col-xs-12 col-sm-4 col-md-3">
<div class="post-snippet-wrapper">
[bsa_pro_ad_space id=4]
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-3">
[wpv-post-body view_template="Main Teaser Snippet"]
</div>
[wpv-item index=9]
<div class="col-xs-12 col-sm-4 col-md-3">
<div class="post-snippet-wrapper">
[bsa_pro_ad_space id=4]
</div>
</div>
<div class="col-xs-6 col-sm-4 col-md-3">
[wpv-post-body view_template="Main Teaser Snippet"]
</div>
[wpv-item index=other]
<div class="col-xs-6 col-sm-4 col-md-3">
[wpv-post-body view_template="Main Teaser Snippet"]
</div>
</wpv-loop>
<!-- wpv-loop-end -->
I visited this URL: hidden link
Thank you for contacting Toolset Support. I am happy to help you with this.
Can you tell me if the shortcode ads are currently added to hidden link for testing? I have tested but want to make sure they are supposed to show currently before I debug.
Thank you in advance.
Hi Tia,
Yes, the ads are on currently. You can see one such Google Adsense ad between post 3 and 4 .
Also, as you can see from my code above, the ads are inserted using shortcode: [bsa_pro_ad_space id=4]
Hope this helps.
Can you run a test for me? Instead of Google Adsense, can you run a test image or text in its place? It's very possible that Google Adsense is blocking the rendering as they only allow up to 3 ads per page so let's run this out first.
The infinite scroll seems to be working for me, just that ads won't show. What kind of browser are you using?