I wrote a bunch of functionality (3 function files, search.php, query.php and vcard.php) I’m trying to bring their functionality into my WordPress theme.
Once brought into the WordPress themes root folder I get 404 errors when I try to call the functions as I did on the test site no matter what I do. ie ../, /, ./, etc.
Do I HAVE TO put my functions inside functions.php? Do I have to register my function files?
Any help would be great! Thanks.
You can include the files from functions.php. You define the constant OF_FILEPATH based on whether or not you are in a child theme or a parent theme and then use it to load in the included php files which you place in an ‘includes’ directory in your theme’s root;
In functions.php;
That should work for you.