Fancy-box Esay wordpress plugin fails to work on Multilingual site

You are most certainly experience a “incompatibility” between the add-on that you use for multiple languages and the Easy Fancy-box (wordpress Plugin). As WordPress does not support multiple languages natively, most of the plugins available do not support it either. For more information about multiple languages, please see What are options are there to implement … Read more

Script only partially runs on theme activation, but runs fully on deactivation?

You’re looking for this: register_activation_hook( __FILE__, ‘your_plugin_activate_function_name’ ); Edit: for a theme, you can use something like this instead: $theme_version = get_option(‘my_theme_version’); switch ((string) $theme_version) { // an early alpha… run upgrade code case ‘0.1’: // another version… run upgrade code case ‘0.5’: // add other cases as needed… without any break statement. // if … Read more

trying to use wp_handle_upload with ajax

You need to include a few files to get wp_handle_upload to work, and i have a function just for that : function My_wp_handle_upload($file_handler,$overrides) { // check to make sure its a successful upload if ($_FILES[$file_handler][‘error’] !== UPLOAD_ERR_OK) __return_false(); require_once(ABSPATH . “wp-admin” . ‘/includes/image.php’); require_once(ABSPATH . “wp-admin” . ‘/includes/file.php’); require_once(ABSPATH . “wp-admin” . ‘/includes/media.php’); $upload = … Read more

Theme settings keep getting reset/erased

Try changing this line: if(isset($_POST[‘field_id’]) && !empty($_POST[‘field_id’])) to: if(isset($_POST[‘field_id’]) && !empty($_POST[‘field_id’]) && current_user_can(‘update_core’)) and: function pp_add_admin() { to: function pp_add_admin() { if(!current_user_can(‘update_core’)) return; and ask for a refund 🙂