[wp-hackers] the_excerpt should have parameters
Boris Anthony
lists.permutype at gmail.com
Sun May 27 23:45:56 GMT 2007
Sounds like a candidate for a nice plugin! If it doesn't already
exist...
parameter vars:
- length (characters or words or sentences. smart truncate? beware
scripts like kanji! )
- prompt (the [...] thing)
- prompt link to permalink true | false
for the filtering, perhaps an options screen where the user can check
off some standard stuff they want to keep/allow
- links
- images
- embedded objects
- iframes
or just pass these as parameters too...
just what I thought seeing this. cheers.
B.
On 27-May-07, at 6:52 PM, R.J. Kaplan wrote:
> Hi,
>
> I'd like to raise a suggestion, based on a lot of feedback I get
> from clients. the_excerpt() function currectly has no tags, but
> they're a few things that users usually want to control, and not
> possible.
>
> 1. the length of the excerpt. I know it can be controlled more
> effectively with the_content() and <!--more-->, but not everyone
> has the patience to do that with every post, all they want is a
> different length.
>
> 2. the [...] at the end. i've got loads of requests to remove or
> change it. having that as a parameter in the_excerpt() could be
> really helpful.
>
> 3. the_excerpt() strips the html tags out of the post. now, this
> gives the desiarable affect %95 of the time, and I understand that
> it's done to prevent validation errors (though it's not done when
> the post is cut in half with <!--more-->) but sometimes, like when
> someone post a video from youtube and wants it to show in the
> excerpt, it might be useful to be able to change this setting.
>
> ~Rubin
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list