Display theme information with get_theme_data

Adding this snippet to your wordpress theme will let you display data from your theme file. name, title, uri, description, authorURI, template, version, status, tags, author. Change THEME_NAME to the name of your theme.

 

<?php
$theme_data = get_theme_data(get_stylesheet_uri());
echo $theme_data['Title'];
echo $theme_data['Author'];
?>

Be Sociable, Share!

Leave a comment