Add/remove action on jQuery toggle

I ended up not adding/removing the action at all, but rather writing an option to the database and having a second plugin check if the option is set: function av_maintenance_mode_check() { if( !wp_verify_nonce( $_GET[‘nonce’], ‘av-maintenance-mode-nonce’ )) die( ‘Go away!’); if( get_option( ‘av_maintenance_mode’ ) == ‘on’ ) { echo ‘<span style=”color:green”>On</span>’; }else{ echo ‘<span style=”color:red”>Off</span>’; } … Read more

Blip Slideshow plugin Mootools/jQuery conflict

There turned out to be 2 problems which made it a bit harder to fix. I had to move the link to the jQuery plug in that runs the slideshow (cycle.all) so it was below the Mootools and jQuery library links. And a plug in called Tabber Widgets had to be deactivated. Both were required … Read more

Passing a varible from jQuery to PHP

First, don’t use query_posts. Second… I think this can be done with AJAX but is there a more simple method and give me a clean URL? PHP runs on the server. Items are “clicked” on the client machine. The only way to pass that “clicked” value back to PHP is via AJAX. Within a WordPress … Read more