How do I write into a file (css)

What’s wrong with saving CSS to the database? That is the correct approach. And that way, you can simply output the options to a function, which can be enqueued properly, using wp_print_styles, and entirely avoid file operations/writing to .css files.

What causes an Unexpected HTTP Error within install plugins?

You can use the following code to dump the HTTP Api response, will help you figure out the cause of error. function dump_http_api_response($response, $type=””, $transport=null ) { if ( $type == “response” ) var_dump ( $response ); } add_action(‘http_api_debug’, ‘dump_http_api_response’, 1, 3); Example Output: object(WP_Error)#15 (2) { [“errors”]=> array(1) { [“http_request_failed”]=> array(1) { [0]=> string(41) … Read more

get values from contact form 7 wp plugin [closed]

First change the `on_sent_ok’ to: on_sent_ok: ‘my_redirect();’ then create that my_redirect() function in the page that displays the form: <script> function my_redirect() { var price = document.getElementById(‘PRICE_FIELD’).value; var url=”https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_xclick&[email protected]&currency_code=USD&amount=”+price+’&return=http://http://cratecreative.com/norpac&item_name=contribution’; window.location = url; } </script and done! Just make sure that you correct the email in that url and replace PRICE_FIELD with the actual id of … Read more

May i Use ShortCode in Template?

Have you tried using the do_shortcode() function? EDIT I’m not familiar with the TweetMeme shortcode, but here’s an example usage for putting a NextGen Gallery directly into a template file: echo do_shortcode( ‘[slideshow id=”1″ w=”603″ h=”270″]’ ); Simply replace with the appropriate shortcode (and parameters) for TweetMeme. Codex ref: do_shortcode() EDIT 2 With TweetMeme, you … Read more

Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics

This one is brand new: http://wordpress.org/extend/plugins/social-media-tracking/ and it sounds like it does what you want. But be watching Joost de Valk’s GA plugin. He mentioned just a few days ago in this thread that he’s working on it right now. He’s a prominent plugin author in the community and does good work. If you want … Read more

Possible to replicate economist.com’s debate section in wordpress? [closed]

That section looks extremely feature-rich and very custom. The possibility of just installing several plugins and getting something like that is pretty much zero (in my opinion). WordPress does have building blocks for such functionality: posts and custom post types for information; comments for discussion; scheduling functionality and calendar-related plugins; plugins for relationships between information; … Read more

Creating Tables on Network Activation

I would actually advise against doing that. If you create a table for each blog on network activation you’ll start running into scalability issues. Some Multisite networks are small (2-10 sites) and wouldn’t cause too many issues. But larger networks (1000+ sites) would add a lot to the database if they added their plugin. Instead, … Read more