[wp-hackers] Accessing post content before it's split by page / Calling 404

Mike Purvis mike at uwmike.com
Thu Jul 6 03:55:37 GMT 2006

I'll just post my solution here in case anyone searches the archives.
It turns out (as I expected) that it's fairly simple:

Just filter "the_posts", which gives back an array containing post
information before page-splits and before output has started. If you
return an empty array, you'll force the standard 404 screen.

Two birds with one stone.


On 7/5/06, Austin Matzko <if.website at gmail.com> wrote:
> On 7/5/06, Mike Purvis <mike at uwmike.com> wrote:
> > So I'm wondering if a) there's a global
> > mechanism for showing the default Wordpress error page,
> Check out the "get_404_template" function in wp-includes/functions.php
> _______________________________________________
> 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