Forums

Call get_option from php outside wordpress (3 posts)

  1. AndrewTraub
    Member
    Posted 2 years ago #

    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

  2. Jauhari
    Member
    Posted 2 years ago #

    Any solutions everyone?

  3. sakamotokazuma
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags