A small update to enable passing extra parameters with the request
I'm integrating a slightly modified version of your tweet-js php script into Wordpress. The PHP script will then be able to fetch the API keys from the Wordpress options.
The change in the JS file I made is to accommodate Wordpress AJAX requests that needs an extra 'action' parameter.
Thanks :)
Unfortunately this doesn't help me. I need to find a way to include my theme options in index.php file as StanScates suggested... This is the easiest way.
// get all theme options include (TEMPLATEPATH . '/framework/theme-files.php'); // this will get global variables from theme options
But the problem is that my theme_get_option function for every field (consumer key, consumer secret and so on) is not recognized.
Regards
Anyway thanks a lot for your answer and time.
Well finally I found the solution...
For those who are trying to integrate Tweet.js-Mod with WP and get the 4 key’s from theme options…
Hope this helps and saves your itme…