0

I have created a custom index.php (with images css) which is a soap client.

In this index.php I have a Send button which connects to the soap server and searches for results.This works fine!

If the results validate the users then I want to redirect them automatically to the first page of a Wordpress site.

my wordpress lets say is

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???

It dont know where to place the code... In the theme ? Do I have to change something in database?

Thans for your answers mates..

7
  • 1
    try in theme's index.php file. This file is default home page of wordpress. Commented Jul 13, 2013 at 8:27
  • include css,js,validation in wp-content/templates/any_template/header.php file. Commented Jul 13, 2013 at 8:59
  • which template you use ? Commented Jul 13, 2013 at 9:01
  • How can we access the index.php file via URL? Commented Jul 13, 2013 at 9:06
  • When you came to the site with known url you launch the core index.php, which starts the bootstrap script, that, after tons of magic, includes the theme index.php or home.php file, or any other depending on a url you came with. Technically: root index.php file launch anyway. Commented Jul 13, 2013 at 9:40

1 Answer 1

1

Try to use your current "Active" wordpress template's home.php (create one if missing) or index.php file. Please consider that home.php has got a priority over index.php in bootstrap script.

For better understanding the wordpress templates hierarchy, please visit this page

Hope it hepls,

-Cheers!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.