Insertion Between posts uses WP hook the_post:
https://adinserter.pro/documentation/automatic-insertion
You can check available positions for automatic insertion provided by your theme:
https://adinserter.pro/documentation/automatic-insertion#available-positions
If there is no suitable insertion position you can try to use Insertion at HTML element(s):
https://adinserter.pro/documentation/automatic-insertion#before-after-html-element
Thread Starter
Chris
(@chrisbegley)
So it looks like Ad Inserter doesn’t support block themes like the default Twenty Twenty-Three theme. I used the “Check” feature: https://i.imgur.com/Sc8gyVI.jpg and “between posts” isn’t available.
This should be a priority since block themes are the way WordPress themes will be built going forward.
It looks like the HTML element will be a good workaround in the meantime. Thank you.
-
This reply was modified 3 years, 1 month ago by
Chris.
Ad Inserter supports all WP hooks for insertions. Is is the responsibility of the theme to call WP hooks on which plugins like Ad Inserter depend. If the theme does not support some hook, then you can still use universal insertion at HTML elements.
Thread Starter
Chris
(@chrisbegley)
It doesn’t support block themes, like the Twenty Twenty-Three theme. That’s the WordPress 6.1 default theme. I used the “Check” feature: https://i.imgur.com/Sc8gyVI.jpg and “between posts” isn’t available.
The HTML insert is a nice workaround, but native support for the core Query Loop block would be best. WordPress themes use blocks now. Your plugin should support them.
-
This reply was modified 3 years, 1 month ago by
Chris.
-
This reply was modified 3 years, 1 month ago by
Chris.
-
This reply was modified 3 years, 1 month ago by
Chris.
As explained, Ad Inserter already supports all WP hooks.