Re-opened: How to include WordPress 3.0 code into … e.g. stylesheets
-
I don’t know why this topic has been marked as resolved and closed:
How to include WordPress 3.0 code into the 3rd party scripts?.
The mentioned workarounds don’t work for me.I need this functionality for generating a dynamic css stylesheet with global variables as described here: Accessing global variable in “CSS” (style.php).
To sum it up a bit: The code
define('WP_USE_THEMES', false); require('./wp-blog-header.php');
was used before to enable wp functionality in 3rd party scripts. In this special case it was possible to use wp global variables in css when added to a dynamic stylesheet, for example style.php. But since 3.0 this code doesn’t work in the same way anymore, it breaks the whole css instead.
What is the code to call wp functionality here now?
- The topic ‘Re-opened: How to include WordPress 3.0 code into … e.g. stylesheets’ is closed to new replies.