[wp-hackers] Request for additional $before and $after parameters to wp_list_cats()

Mike Purvis mike at uwmike.com
Sat Nov 18 03:03:23 GMT 2006


If you want the same functionality without having to hack the source,
you can use regular expressions to post-process the output functions
wp_list_cats. It's ugly as heck, but I have a couple spots in my
template where I use output-buffer functions to scoop up the output,
and crunch it.

If you'd like more details about this, send me an off-list message and
I'll dig up a little example code for you.

Mike


On 11/17/06, Vladimir Dzhuvinov <vd at valan.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> Recently I migrated from Blogger to Wordpress 2.0.5. During
> customisation of my templates I noticed that the wp_list_cats() function
> doesn't support $before and $after parameters as other listing template
> functions do - e.g. get_archives() or get_links().
>
> I need a $before parameter because certain browsers still have poor
> support for the CSS :before directive.
>
> I implemented a tiny hack in template-functions-category.php which
> solved my problem (thank God Worpress is open source :) Still, I find
> the addition of $before and $after parameters a useful and consistent
> feature and would like to suggest it for future inclusion in the
> official code.
>
> Wish you a nice weekend,
>
> Vladimir
> - --
> Vladimir Dzhuvinov * www.valan.net * vd at valan.net * PGP key ID AC9A5C6C
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFFXi2ITVrVaayaXGwRAsHHAJ9oU5m5gZ9QgNvIgfPHk/CAlvMVxwCgiopU
> XhDnsaMYw95GTgplAdcr6D8=
> =HOhF
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


-- 
http://uwmike.com // http://googlemapsbook.com


More information about the wp-hackers mailing list