[wp-hackers] Do I have to suggest a new hook (or just write better documentation)?

John Blackbourn johnbillion+wp at gmail.com
Sun Sep 9 13:16:12 GMT 2007


You could try output buffering [1] with a preg_replace for something
like '/<h2>Archive for category.*?<\/h2>/i' (although that's off the
top of my head so is probably wrong). Not sure how this would affect a
blog's performance so you'd have to look into that.

HTH, John.

[1] http://www.php.net/ob_start

On 9/9/07, Pixline <supporto at pixline.net> wrote:
> I wrote a plugin [1] that needs a little template modification in
> order to work. But I have seen in the last two months that quite 9/10
> of potential users have troubles in doing this little modification [2].
> As long as I know, there's no hook available to make what this plugin
> is supposed to do (replace 'archive for category x' h2 with a page
> content, like a longer introduction to your category archives).
> My questions:
> 1) Am I missing some hooks, and there's a better way to do what I'm
> trying to do?
> 2) If not, this is worth a new hook proposal, and do you think this
> hook would be acceptable?
> I'm really confused...
> Thank you!
> [1] http://pixline.net/wordpress-plugins/category-page-plugin/
> [2] http://talks.pixline.net/topic/installation-okay-page-does-not-
> display-category/
> Paolo Tresso
> Pixline.net coder
> --------------------------------------------
> http://linkedin.com/in/paolotresso
> http://pixline.net
> _______________________________________________
> 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