• Resolved spabav

    (@spabav)


    Hello,
    I got a weird error displaying too many ad-blocks on post pages.

    We created 5 ad-blocks to be inserted after the 7th, 14th, 21st, 28th and 35th paragraphs.
    This way it inserts ad-blocks throughout especially very long articles.

    When we have shorter articles, ad-inserter should only display the ad-blocks for the paragraphs found in the post. This works fine on 80% of our articles.

    However, on some shorter articles, ad-inserter inserts e.g. the 1st and 2nd adblock perfectly, reaches the end of the short post, and then starts to insert the 3rd and 4th adblock again in the very same article counting from the top. Reaching the end again, ad-inserter then inserts the 5th adblock again into the post starting from top.
    It is a bit like ad-inserter does not recognize an “END-of-Post” mark.

    If i look at the article via the Ad-inserter “debugger-Label Blocks”it shows all 5 ad-blocks inserted in the post, but ad-block 5 and 3 inserted above ad-block 1.

    To test, I inserted some manual “<p> </p>” at the end of the article, but it did not change anything.

    Is there any way to tell ad-inserter that “end of article” is here and stop inserting ad-blocks for more paragraphs then the article got?

    Would be great if anybody could help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    There is no such thing as “END-of-Post” mark.
    Ad Inserter and other plugins use the content hook to process posts and insert ads.
    Of course, if the hook is called more than once then ad inserter will insert ads twice.

    But there are many options to limit insertion in order to achieve desired insertions in almost all cases.

    If you use before/after paragraph automatic insertion and use paragraph number, then this should work fine. Currently there are no known bugs related to insertion.

    From your post it is not clear what is the problem. You didn’t post any links so we can’t check and advise.

    Please enable remote debugging, post some links where you notice insertion issues and describe which blocks are not inserted properly.
    https://adinserter.pro/documentation#debugging

    Thread Starter spabav

    (@spabav)

    Hello Igor,

    Thanks for the super quick reply.

    We are using “If you use before/after paragraph automatic insertion and use paragraph number”… and we can replicate the bug now.

    It is related if we have one or better more WordPress BLOCKQUOTEs inside the text. It depends a bit that at least one time the automatic ad-insertion is next/before a blockquote text when the plugin starts inserting adblocks again and again.

    We have 6 adblocks defined – with 7,14,21,28,35,42 p distance and our text contains ab 18 paragraphs. if you start marking existing paragraphs as blockquote you will see how the plugin starts inserting all 6 adblocks in the same text.

    I setup a little demopage so you can see yourself:

    https://www.tipsbulletin.com/testing-ad-inserter/

    Would be great if you could help me how to overcome this problem.

    Thanks in advance.

    Plugin Author Spacetime

    (@spacetime)

    It seems that caching is still enabled for this page and Ad Inserter remote debugging is not enabled.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ads after x paragraphs inserted over and over again’ is closed to new replies.