Mladen
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast Duplicate Post] [Plugin: Duplicate Post] Magic-fieldshi, I’m not experienced programmer but I manage to do some kind of function to copy Magic fields so here it is if somebody need..
just put it in functions.phpfunction mf_copy_post($new_post_id, $old_post_object){ global $wpdb; $i=0; $repeated_filde_name = NULL; $query = $wpdb->prepare( "SELECT * FROM ".MF_TABLE_POST_META." WHERE post_id = %d", array( $old_post_object->ID) ); $fields = $wpdb->get_results( $query, ARRAY_A); foreach ($fields as $key => $field) { if ($repeated_filde_name == $field['field_name']){ $i++; } else { $i=0; } $repeated_filde_name = $field['field_name']; $query = $wpdb->prepare( "SELECT * FROM ".$wpdb->prefix."postmeta WHERE post_id = $new_post_id AND meta_key='{$field['field_name']}' LIMIT 1 OFFSET $i " ); $new_fields = $wpdb->get_row( $query, ARRAY_A); $field['meta_id'] = $new_fields['meta_id']; $field['post_id'] = $new_post_id; $res = $wpdb->insert( MF_TABLE_POST_META, $field ); $repeated_filde_name = $field['field_name']; } } add_action( "dp_duplicate_post", "mf_copy_post", 10, 2);
Forum: Plugins
In reply to: Contact 7 Plug-in not sending to gmail addressI have sam problem, any fix? I’ve tried to sent form output to one of addresses on my server and then redirect to gmail… but still no result.
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pages1. yes… wp_post to bakup_post etc..
2. Just like you do first time install
3. rename back.. old tables backup_post to wp_post
4. I did step 3 with this tables..
wp_comments
wp_links
wp_postmeta
wp_posts
wp_users
5. I lost all my categories.. and I don’t remember what happen with user .. But I had only two so that didn’t bother me..I know this is not very easy solution.. but it work.. still waiting WP team to find some better solution!
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pageswell like I said before.. try to change all your tables prefix names.. and then run new installation of WP. when your site is running then rename your old tables and copy them over your new tables.. but not all, just post, links, etc… You’ll lose categories and maybe some other data.. so be sure to know what are you doing.. and please be smart and backup everything !!
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pageswhen I had this problem I also had installed wp-commerce, too
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pagesI change my table name prefix and did fresh install of Wp with my old files.. then I rename some tables to get post, links etc.. only I didn’t manage to get old categories running ?? but I did it manually.. now everything works just fine and, I think much faster
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pageswell.. i decided to reinstall wp ?? .. and now everything is working fine ??
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pages@cheetahcub
I don’t understan what you did.. what old files ??Forum: Fixing WordPress
In reply to: Help WP_Error when saving pagestry to update to 2.3.1 but sill having same problems ??
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pagesyepp.. situation here is the same.. i run few WP 2.3. intalation on server and only with one I have problem, it problems with upload pictures.. I’m hoping that wp. 2.3.1 update will fix that
Forum: Fixing WordPress
In reply to: Help WP_Error when saving pagesis it possible that problem is caused by PHP version 5.2.4???
because our servers was updated to this version of php and somewere in the same time started all proplems with wordpress…Forum: Fixing WordPress
In reply to: Help WP_Error when saving pagessame thing here.. still cann’t post.. so did andybody have any solution rather then reinstall wordpress
Forum: Fixing WordPress
In reply to: Cannot post, Fatal error … taxonomy.php on line 1010same thing here… any solutions!?