Shortcode for phpinfo

It’s been quite a while since I posted anything on the IT side. Today I’ve been doing some troubleshooting, trying to figure out why I can get the latest version of WordPress installed on a development site but not on the live site. One useful bit of information is, what version of PHP is the site running? There are slightly involved ways to find out, but here was a bit of code I simply had to add to the functions.php file for my theme, then put the [phpinfo] shortcode on a page, display the page, and voilá, all the info I could ever need.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top