[wp-hackers] Questions - 404 and passworded page

24/7 24-7 at gmx.net
Wed Jan 6 16:03:49 UTC 2010


Ad 1) maybe with some redirect and if file_exists or
if(!empty(get_option('template')); but that´s just an idea.

Ad 2) There´s the posts-table and a row named "post_password".

Hope this helps you a little :)

-----Ursprüngliche Nachricht-----
Von: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] Im Auftrag von Alex Andrews
Gesendet: Mittwoch, 06. Jänner 2010 16:04
An: wp-hackers at lists.automattic.com
Betreff: [wp-hackers] Questions - 404 and passworded page

Dear all,

A couple of queries that I can't work out even after a fair bit of Googling.

1. At the moment my plugin takes some data from a rewrite and
processes it - ie artist/NAME. If the data isn't found for NAME ie
there is no artist like this, I want to display a Wordpress templated
404 message - how can I do this?

2. How can I plug into the passworded post system so I can have a page
generated by a plugin passworded as with a normal post?

Thanks very much. If you could point me in the right direction that
would be great.

All the best

Alex
_______________________________________________
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