Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hi I am new to template development and today I started my first theme.Things are not going as well as I tought I can't seem to find anything I need in the codex it seems to disorganized to me.

I would like to know if there is a function that I can acces the info in the style.css file posted on the top.More specificaly I am interested in geting the author and author URL from these:

Theme Name: Twenty Ten
Theme URI: http://wordpress.org/
Description: The 2010 default theme for WordPress.
Author: wordpressdotorg
Author URI: http://wordpress.org/
Version: 1.0

Another thing I would like to know is how can I get the info for the admin user set in USERS -> YOUR PROFILE

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You can use -

  • wp_get_theme() - To get current theme data. You also can get information of other themes by passing theme directory name.

  • get_userdata() - To get user data stored in the profile page.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.