How Do I Find the Version of WordPress Database?

Finding the Version of WordPress Database

When trying to troubleshoot WordPress issues, one of the first things you’ll want to do is check the version of the WordPress database. This can be done in a few different ways, but the most common way to do it is to use the wp-version command.

To find the version of the WordPress database, open a command prompt (Windows) or terminal (Mac) and type the following:

wp-version

You’ll see output that looks something like this:

WordPress 4.7.2

If you’re on aWordPresse site that uses the default theme, then the version of the database may be different. To find out, use the theme’s name as the parameter to the wp-version command:

wp-version –theme= default

If you’re using a custom theme, you’ll need to find the file name of the theme and use that as the parameter to the wp-version command:

wp-version –theme= “mytheme”

The output of the wp-version command will always include the version number and the build number. If you’re having problems with your WordPress site, be sure to check the version of the WordPress database and also the version of the WordPress theme or plugin you’re using.