Title: Call get_option from php outside wordpress
Last modified: August 19, 2016

---

# Call get_option from php outside wordpress

 *  [AndrewTraub](https://wordpress.org/support/users/andrewtraub/)
 * (@andrewtraub)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/call-get_option-from-php-outside-wordpress/)
 * I am trying to create a way for a template user to modify the colors without 
   going into the css.
 * Storing the colors and retrieving them is easy, and get_option is working to 
   retrieve the colors, but I want to be able to call get_option from a php file
   that renders the css. i.e. the file would be colors.php and linked to in the 
   header.php file.
 * How can colors.php call get_option? Are there files I can include at the top 
   of the colors.php to obtain that functionality?
 * Thanks,
 * Andrew

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Jauhari](https://wordpress.org/support/users/jauhari/)
 * (@jauhari)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/call-get_option-from-php-outside-wordpress/#post-1174953)
 * Any solutions everyone?
 *  [sakamotokazuma](https://wordpress.org/support/users/sakamotokazuma/)
 * (@sakamotokazuma)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/call-get_option-from-php-outside-wordpress/#post-1174962)
 * I think you can include(“../../../wp-blog-header.php”); but right now, it’s only
   working in one of my php classes, and not the other that I need it to be functional
   in… >.<

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Call get_option from php outside wordpress’ is closed to new replies.

## Tags

 * [Get_Option](https://wordpress.org/support/topic-tag/get_option/)

 * 2 replies
 * 3 participants
 * Last reply from: [sakamotokazuma](https://wordpress.org/support/users/sakamotokazuma/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/call-get_option-from-php-outside-wordpress/#post-1174962)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
