[wp-testers] is_page('Education & Outreach')

Michael E. Hancock justmichaelh at gmail.com
Wed May 12 12:39:37 UTC 2010


From: "Danny G Smith" <dgs at riskiii.com>
> It appears that is_page is not sanitizing the input text, at least that is 
> my guess, when I use 'Education & Outreach' which it the page title, it 
> does not work, but if I use the page number 25 it does.

This works in 2.9.2 and 3.0-beta2-14565

<?php
$page_title = 'Education & Outreach';
if ( is_page($page_title) ) {
echo 'this is the Education & Outreach page';
}
?>

Regards

MichaelH 



More information about the wp-testers mailing list