1799 posts
  • Affiliate Level 1
  • Author Level 4
  • Beta Tester
  • Collector Level 2
+4 more
BroOf
says

This is one way to include the wp-load.php file as unisphere said. You’d just do something like this at the top of your style PHP file.
<?php //Setup location of WordPress
$absolute_path = __FILE__;
$path_to_file = explode( 'wp-content', $absolute_path );
$path_to_wp = $path_to_file[0];

//Access WordPress
require_once( $path_to_wp.'/wp-load.php' );

//Now continue with any WordPress suff...
?>

#your-custom-thing {
     color: #<?php echo get_option(‘color’); ?>;
}

Exactly what I was looking for! Thanks so much!

415 posts
  • Affiliate Level 2
  • Author Level 9
  • Collector Level 2
  • Top Monthly Author
+7 more
unisphere
says


Man those 3 first lines of code are much better than the way I’m doing it, hope you don’t mind I use them, they’re delicious :D
Have at it. :-) What are forums for, right?

Thanks man, appreciate it ;)

by
by
by
by
by
by