WP Plugin for PHP Include Functions
For just about all my WordPress websites I have used a Plugin named EXEC-PHP to execute php include code which I put in my pages. Now a few websites have upgraded the php version on the server and the plugin still works but is doing some weird things. For example at the top of my website it says a lot about deprecation (ex. www.usalegalcasinos.com)
So I am looking for a new plugin which will allow me to have php files in a separate folder which I can change easily and then use those files on multiple pages throughout my website. That way when something changes I only need to change the one file and it will update on the pages I have used that particular file.
The code I have used is <?php include(ABSPATH.'/wp-includes/phps/sloto2.php'); ?> with "sloto2.php" being the file in the other folder which I want to use on multiple, but not not all pages in my website.
I know many other webmasters have to do the same thing I am and wondering if anyone can give me the name of a plugin that is easy to work with and I can use. I have tried several and even tried to google to find a plugin but cant find one that does what I need it to.
Thanks