[wp-hackers] Replace default doctype on one page only through
plugin
Mike Schinkel
mikeschinkel at newclarity.net
Mon Jan 19 04:04:18 GMT 2009
Lynee:
Does it even need to be in a plugin? It this for this site only, or are you trying to create generic functionality? Can't you do just do something like (in ~psudeo-code):
<?php
if ($_SERVER['REQUEST_URI']=='special_url') {
echo '<Special DocType>';
} else {
echo '<Regular DocType>';
}
?>
-Mike Schinkel
http://mikeschinkel.com/custom-wordpress-plugins/
Lynne Pope wrote:
> Hi all,
> I am working on a site that is using XHTML 1.0 Strict but want to serve
> XHTML 1.0 Transitional on one page only. The page uses a plugin so the
> change to the doctype could go into the plugin.
>
> I can do a query in header.php but want to avoid unnecessary queries (why
> add an additional query to 300+ pages when only one is affected?) but cannot
> get an override working for the plugin.
>
> Any ideas?
>
> Lynne
More information about the wp-hackers
mailing list