[wp-hackers] How to display one thing for the_content() and another for the_excerpt() ?

Viper007Bond viper at viper007bond.com
Wed Apr 18 13:27:30 GMT 2007


Oooooh, I knew wp_trim_excerpt() ran, but I didn't realize it was the one
that faked the excerpt if need be (and therefore I could clone it).

Perfect. Thanks!

On 4/18/07, Austin Matzko <if.website at gmail.com> wrote:
>
> 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'?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/


More information about the wp-hackers mailing list