is_page() not working from within a plugin

The action init happens too early to know if the current page should display a page. You have to wait at least until template_redirect. But if you want to print something to the page, use the_content.

Leave a Comment