Hello,
shortcode [adinserter disable="1, 2, 3, …"]
disables insertion of blocks with numbers 1, 2, 3 into post/page content. Use #
to disable all blocks.
This approach is also possible:
https://adinserter.pro/documentation/black-and-white-lists
Header code needs to be inserted via a block using this method:
https://adinserter.pro/documentation/header-and-footer-code#page-specific-header-footer
Thread Starter
net
(@krstarica)
I understand that Black and White Lists are per block, so would need to add 200 post ids to black list to every block?
Is there some general black list to avoid doing that and to avoid editing each post just to add shortcode?
If you need to disable ads only for some posts then you need to list the posts somewhere.
You don’t have to edit each post, you can automatically insert the shortcode only for those posts. Configure one block with the shortcode and insert it in the header for those posts – use the same approach for insertion as for the header code.
Thread Starter
net
(@krstarica)
That’s great, thank you!
It is also important to use wp_head with higher priority than header code block is using, so blacklist shortcode can execute first.
I think this question and answer should be added to FAQ.
Thanks for the suggestion!