View Single Post
05-27-2008, 09:34 AM
#3
Llanilek is offline Llanilek
Status: I'm new around here
Join date: May 2008
Location:
Expertise:
Software:
 
Posts: 17
iTrader: 0 / 0%
 

Llanilek is on a distinguished road

Send a message via MSN to Llanilek

  Old

you can either do what CreativeLogic told you.

and add it like this.

Code:
<?php 
str_replace('<p>', '', the_excerpt());
str_replace('</p>', '', "the_except());
?>
that would strip both <p> and </p> tags...

although something a little more productive would be to use regexp.

Code:
<?php

$str = preg_replace('^<p\>(.+)\<\/p\>^', '$1', the_excerpt());

echo $str;

?>
although the preg_replace will only work if the_excerpt(); has a return value not an echo value.

hope this helps some.