I am using wordpress an I am trying to dynamically add an ad to my content. I want the ad to show before the third h2 tag.
How can I do this in php?
I need something like:
if third h2 tag,then echo "ads" before that h2
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.