I have a global variable, let’s call it {adsense}. I have a lot of articles/entries and would like to put that {adsense} tag in every one. The only problem is I would like to place the tag before the first subheading of each article. Each subheading is wrapped around
</h3> tags.
Example:
This is the first paragraph
This is the second paragraph
{adsense}
<h3>This is the first subheading</h3>
<p>This is another paragraph</p><h3>This is another heading</h3>
This is the first paragraph
This is the second paragraph
{adsense}
<h3>This is the first subheading</h3>
<p>This is another paragraph</p><h3>This is another heading</h3>I found Hop Studio’s Hop Injection plugin here: http://www.hopstudios.com/software/hop_inject/
This does what I am looking for but it doesn’t add the tag into the entry itself. If I were to remove the plugin then it would remove the tag from every entry too.
It doesn’t edit or “write” to the entry.
How would I go about doing that? I was thinking Find and Replace but I’m not sure what kind of query I would use..