You can get the WordPress version using the following code:
$version=bloginfo('version'); echo $version;
Here $version displays the WordPress Version you use. You can get different information about the current site by passing parameters to bloginfo(). Some important parameter’s are listed below
- name
- description
- html_type
- url
- admin_email
- language
- stylesheet_directory
- template_directory
Have any doubt, then comment here!