Just like Facebook and other PHP based websites you can also enable .PHP extension in your WordPress site pages. ALl you would be needing to do is install and activate .PHP on PAGES plugin and you are done.
Continue reading How To Enable .PHP Extension In Your WordPress Site Pages ?