/ Published in: SQL
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
UPDATE wp_posts
SET guid = concat('http://www.example.com/?p=',ID)
WHERE guid = ''
AND post_status = 'publish'
AND post_type = 'post';
UPDATE wp_posts
SET guid = concat('http://www.example.com/?post_id=',ID)
WHERE guid = ''
AND post_status = 'publish'
AND post_type = 'page';
Comments
 Subscribe to comments
                    Subscribe to comments
                
                