Print out WordPress user ID – two sites with same code but different output

The problem was directory related.

The WordPress installation was in

  • htdocs/wordpress/

The functions folder with the PHP files was in

  • htdocs/functions/

So when the scripts were called upon, even if the src url was correct it wouldn’t run it, I’m not sure exactly what it searched for but after moving functions inside the wordpress directory and fixing the target and action links it worked instantly.

So the new directory were

  • htdocs/wordpress/functions

Thanks to @SamuelElh once again for his support 🙂

Leave a Comment