i'm trying to put a search page on my site. I thought it would be simple, but I am having no success.
I have put a form in my header.php (which I call in my search.php page (include "header.php")) that looks like that:
<form action="<?php bloginfo("template_directory") ?>/search.php" method="get"> <input type="text" value="Votre recherche pour:" /> <input type="submit" value="soumettre" /> </form>
But when I submit the search, I get this fatal error and I don't know what to do.
Hopefully, you will be able to help. Thanks!
Fatal error: Call to undefined function add_action() in C:\wamp\www\wordpress-3.5-fr_FR\wordpress\wp-content\themes\electrobangers\functions.php on line 2
Relevant code: add_action("init", "register_my_menus");