[theme_data]

The shortcode allows you to retrieve and display various theme-related information from the current WordPress theme or its parent theme (if using a child theme).


Product


Shortcode Attributes

There are a number of shortcode attributes available which you can use to customize the output.

  1. data – Used to change the returned time format
    • Default: Name.
    • Options: Specify one only:
      • Name – Theme name.
      • ThemeURI – Theme URI.
      • Description – Theme description.
      • Author – Theme author.
      • AuthorURI – Author URI.
      • Version – Theme version.
      • Template – Parent theme (if using child theme).
      • Status – Theme status.
      • Tags – Theme tags.
      • TextDomain – Text domain for translation.
      • DomainPath – Path to translation files.
  2. parent – Determines whether to get data from the parent theme (when using a child theme) or the active theme.
    • Default: off.
    • Options: on, off. Specify one only.

Example Usage

[theme_data data="Name"]
[theme_data data="Version" parent="on"]

Results

Example 1:
This example displays the current theme name.

Example 2:
This example displays the parent theme version (when using a child theme).