[thelist] remove h1 line/entry
Bob Meetin
bobm at dottedi.biz
Fri Nov 19 18:30:01 CST 2010
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 »'); ?>
</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>
something like sed or grep -v from the shell, might be beginning of the
pattern, <h1> through end </h1>.
-Bob
More information about the thelist
mailing list