使用自定义php文件的Wordpress

使用自定义php文件的Wordpress,php,mysql,wordpress,Php,Mysql,Wordpress,我已经在localhost上创建了一个搜索引擎,但现在正在尝试将文件移动到wordpress上 对于主题模板文件和文件管理器,我究竟如何实现这一点?我有一个search.html文档作为开始,它调用search.php从MYSQL数据库中获取结果 同时,我还有一个search.inc.php页面,用于搜索自动建议,这些建议也是从数据库中提取的,并在您键入时显示出来 我已经尝试将search.html代码插入header.php文件 搜索栏和按钮可见,但建议和搜索结果都不起作用。我尝试将searc

我已经在localhost上创建了一个搜索引擎,但现在正在尝试将文件移动到wordpress上

对于主题模板文件和文件管理器,我究竟如何实现这一点?我有一个search.html文档作为开始,它调用search.php从MYSQL数据库中获取结果

同时,我还有一个search.inc.php页面,用于搜索自动建议,这些建议也是从数据库中提取的,并在您键入时显示出来 我已经尝试将search.html代码插入header.php文件

搜索栏和按钮可见,但建议和搜索结果都不起作用。我尝试将search.php和search.inc.php插入childtheme和header.php所在的文件夹中,但没有成功

我必须如何处理这些文件,以便它们能够与my header.php充分通信

Please create a  page template file in your theme like :

<?php
/*
Template Name: My Custom Page
*/

and when you create a new page select this templete in admin panel.

now you can add any code what you want. this will communicate with you header file


for more details about page template visit :

http://codex.wordpress.org/Page_Templates