Support » Fixing WordPress » Include search form with is_pages()

  • This is a really stupid questions that I should know, but I am tired 🙂

    If I have a string of if (is_home()) {} etc., how do I include the searchform within it

    [<?php include (TEMPLATEPATH . ‘/searchform.php’); ?> ].

    Meaning I can’t include a open php tag within another.

    Thanks for help

Viewing 1 replies (of 1 total)
  • Nevermind just figured it out:

    <form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>

Viewing 1 replies (of 1 total)
  • The topic ‘Include search form with is_pages()’ is closed to new replies.