@Sal I am glad to say your code works fine, with one small adjustment.
I had to change
Code:
add_hook('index-pretemplate','sitc_process');
to
Code:
add_action('index-pretemplate', 'sitc_process');
@everyone
You guys keep telling me to keep this simple, I am not quite understanding how
this will turn this plugin into something that isn't advanced? My main reasoning for
the plugin to check for the file existence of the 'iPhone' file is so that if it happened to
accidentally get deleted, or they install the plugin before the theme, it will not crash there
website.
@baris have you tried to zip the .php file and upload it?
@zegnat the only thing that has prevented me from add features to this (as in the admin section)
is because I am new to php, I can't get a grasp on php and simplexml. I wouldn't even know where
to start to read an xml file with php...
thank you all!