My code is on my home computer so I don't have access to it until tonight. It does have the PHP tags and a simple header.
I've had this problem for about a week or so. I had to not work on it for a few days because it is so frustrating. I have tried watching several tutorials and have deleted and reinstalled everything being careful at every step. I have stepped back and created a few simple plugins going step by step with the tutorials that I am watching. Everything seems fine. I activate the plugin like normal, and then nothing changes on the frontend, only admin.
I've ruled out browser cache, php cache, server cache. I have disabled all other plugins just in case they might be doing something. Is there some simple setting or something I'm missing? The code I use seems to work for everyone else.
The site I am working on is a live site. I copied the code and database to my local machine. In wp-config.php I have updated the database information and set the MAMP path the the folder containing the code. I had to update the following below to stop the admin from redirecting to the live site:
define('WP_HOME', "");
define('WP_SITEURL',"");
I'm all out of ideas. I will post my code for the simple plugin printing the version. I have not done much else because I cannot get past this problems.
Any guesses or suggestions would be appreciated.