How can I require specific PHP files for specific templates without any hook?
Example: I've one PHP file "autocomplete.php' and once a page template "photographers.php'
Now I want to require 'autocomplete.php' file in functions.php file only for photographers.php template.
How can I do this? I've tried using is_page_template () but didn't success.
Here is code
Here is screenshot http://prntscr.com/mchx6a
I've searched before submitted this question in this platform. And i got this post load/require specific php files for specific pages/templates/post types But this post didn't solve my problem. Then I've submitted this question
photographers.php is a custom template. And autocomplete.php is some of custom functions and some of the script. That's all functions and script need to only for photographers.php (Custom Template) so I like to load that function/script only for that custom template