Hi guys
I've looked all over and tried a few of my own attempts at a forumal, but nothing is working.
I have a nextgen gallery and I am trying to change all the galleries to a different display format - nextgen does not offer this ability (which is stupid), which means I need to run a SQL query on about ohh, a thousand galleries to change it in the database. The problem is, is that doing over a thousand of these changes will be cumbersome .. I'd like tot ry and use Excel to do the incremental numbering -but, there are several numbers in each string and I dont know how to make these increment with a formula in excel ...
UPDATE wp_posts SET post_content = REPLACE(post_content, '[nggallery id=1]', '[nggallery id=1 display_type=photocrati-nextgen_pro_masonry]') WHERE post_content LIKE '[nggallery id=1]';
desired output
UPDATE wp_posts SET post_content = REPLACE(post_content, '[nggallery id=2]', '[nggallery id=2 display_type=photocrati-nextgen_pro_masonry]') WHERE post_content LIKE '[nggallery id=2]';
UPDATE wp_posts SET post_content = REPLACE(post_content, '[nggallery id=3]', '[nggallery id=3 display_type=photocrati-nextgen_pro_masonry]') WHERE post_content LIKE '[nggallery id=3]';
UPDATE wp_posts SET post_content = REPLACE(post_content, '[nggallery id=4]', '[nggallery id=4 display_type=photocrati-nextgen_pro_masonry]') WHERE post_content LIKE '[nggallery id=4]';
etc etc. Can someone help with a formula to allow these increments within the string?