if statement parent page for child pages

If test.php is in your theme directory, try locate_template(‘test.php’) instead.

If it is somewhere else, make sure that you are trying to include it properly via the path needed.

Just doing include ‘test.php’ most likely makes it think that test.php is in the root directory of the site as /index.php runs the site (e.g. where your wp_config.php file is unless you have a custom set up.)

Most likely you are simply looking in the wrong place for the file to include.

Try:

require 'test.php';

If the page dies, it is trying to load, but looking in the wrong place.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)