WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.