[thelist] remove h1 line/entry

Will willthemoor at gmail.com
Fri Nov 19 21:58:36 CST 2010


On Nov 19, 2010, at 4:30 PM, Bob Meetin <bobm at dottedi.biz> wrote:

> I'm needing to make some changes to a wordpress page to remove the <h1> entry.  The following line includes both the header and paragraph text.  This is some kind of function?
> 
>       <div class="entry">
>         <?php the_content('<br />Read more &raquo;'); ?>
>       </div>
> 
> The object is to remove only the header, not the balance of the content. Is there a way to massage 'the_content' using preg_grep or whatever to remove the text?  i.e. starting with:
> 
> <h1>some title</h1>
> <p>whatever</p>
> 
> ending with:
> <p>whatever</p>
> 

the_content() doesn't include the title of the post.  Is there is an actual h1 in the content body itself you're trying to remove in this instance?


More information about the thelist mailing list