[wp-hackers] How to display one thing for the_content() and
another for the_excerpt() ?
Austin Matzko
if.website at gmail.com
Wed Apr 18 13:06:08 GMT 2007
On 4/18/07, Viper007Bond <viper at viper007bond.com> wrote:
> I have a post with some placeholder text. I want to replace the placeholder
> with one bit of HTML for the_content() and another bit of HTML for
> the_excerpt().
>
> [snip]
>
> What can I do? Is there some way to dynamically run "the_content" based on
> whether we're making an excerpt or not?
It looks like WP calls wp_trim_excerpt, the function that generates
the excerpt, for the 'get_the_excerpt' filter. Why don't you just
remove that function from the filter and add your own function, one
that doesn't filter the text with 'the_content'?
More information about the wp-hackers
mailing list