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 … Read more

require happens out of order

Must be something with your setup. Following works for me (inside child theme – should work for any theme though): single.php: global $post; $bla = $post->post_title; error_log(‘post title is: ‘ . $bla); include(‘included.php’); included.php: error_log(‘i am included file: ‘ . $bla); Output in debug.log: post title is: Hello test i am included file: Hello test … Read more

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