How to insert Google Adsense in a single post after the <!--More--> Tag
Posted
by
Bob Cavezza
on Stack Overflow
See other posts from Stack Overflow
or by Bob Cavezza
Published on 2011-06-28T12:50:43Z
Indexed on
2011/06/28
16:22 UTC
Read the original article
Hit count: 160
I'm using wordpress, and I want to add the adsense javascript tags where the Read More tag goes in a blogpost. It's stored as <!--more-->
in the database, but when you use the_content()
this is automatically changed before I have the chance to use a str_replace()
function.
I'm looking to place an adsense tag for each post in the single.php
page where the teaser ends. Has anyone been able to do this?
© Stack Overflow or respective owner