[thelist] remove h1 line/entry

Will willthemoor at gmail.com
Sun Nov 21 07:02:45 CST 2010

On Nov 19, 2010, at 8:56 PM, Bob Meetin <bobm at dottedi.biz> wrote:
> For what it's worth I can now mess up Wordpress with the best of em.

function replace_content($content)
$content = str_replace('###replaceme###', 'something_else',$content);
return $content;
I've used a snippet similar to this in the past to fix stuff returned by the_content. Stick it in functions.php in your theme, change str_replace to preg_match, find your h1 and off you go.


More information about the thelist mailing list