turegjorup
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Post Type Switcher] Confilct with WPML pluginYou need to update the plugin to also update the wpml tables in the database:
Add this after
set_post_type( $post_id, $new_post_type_object->name );in the pluginfile/* -------------------- WPML SUPPORT ---------------------*/ /* http://ww.wp.xz.cn/support/topic/post-type-switcher-bug-with-wpml */ // in case of using the WPML plugin if(function_exists('icl_object_id')){ // adjust field 'element_type' in table 'wp_icl_translations' // from 'post_OLDNAME' to 'post_NEWNAME' // the post_id you look for is in column: 'element_id' if($post->post_type == 'revision'){ if(is_array($post->ancestors)){ $ID = $post->ancestors[0]; } } else { $ID = $post->ID; } global $wpdb; $wpdb->update( $wpdb->prefix.'icl_translations', array( 'element_type' => 'post_' . $new_post_type_object->name, // string ), array( 'element_id' => $ID, 'element_type' => 'post_' . $post->post_type ) ); $wpdb->print_error(); } }Forum: Plugins
In reply to: [Simple Fields] Datepicker not working on 3.6Don’t know if these problems are related, but give it a try.
I was using the datepicker inside a repeatable filedgroup. When ever I clicked ‘add’ to add another row nothing happened. In the log I could see this error:
Uncaught TypeError: Object #<i> has no method 'log' jquery-ui-timepicker-addon.js:310Upgrading jquery-ui-timepicker-addon to v1.4 fixed the problem: http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.js
Viewing 2 replies - 1 through 2 (of 2 total)