简体   繁体   English

如何在Wordpress中添加自定义php第一页?

[英]How can I add in Wordpress a custom php first page?

I have created a custom index.php (with images css ) which is a soap client . 我创建了一个自定义的index.php (带有css图像 ),这是一个肥皂客户端

In this index.php I have a Send button which connects to the soap server and searches for results.This works fine! 在这个index.php中,我有一个Send按钮,该按钮连接到soap服务器并搜索结果。

If the results validate the users then I want to redirect them automatically to the first page of a Wordpress site . 如果结果验证了用户,那么我想将他们自动重定向到Wordpress网站的第一页

my wordpress lets say is 我的wordpress可以说是

www.wpdemo.com www.wpdemo.com

Where and how should I place my custom index.php(included images and css) in order to work like a first page validation for users ??? 我应该在哪里以及如何放置自定义index.php(包括图像和CSS),以便像对用户的首页验证一样工作?

It dont know where to place the code... In the theme ? 它不知道在哪里放置代码...在主题中? Do I have to change something in database? 我是否需要更改数据库中的某些内容?

Thans for your answers mates.. 谢谢您的答案。

Try to use your current "Active" wordpress template's home.php (create one if missing) or index.php file. 尝试使用当前的“活动” wordpress模板的home.php (如果缺少则创建一个)或index.php文件。 Please consider that home.php has got a priority over index.php in bootstrap script. 请考虑在引导脚本中,home.php的优先级高于index.php。

For better understanding the wordpress templates hierarchy, please visit this page 为了更好地了解wordpress模板的层次结构,请访问此页面

Hope it hepls, 希望它能帮助你

-Cheers! -干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM