So the regular column count in wordpress’ is 3, and in order to change this number, there isn’t any place in the settings to change it. so basically in order to change this, you will have to have a minor bit of programming knowledge, a good text editor. and some gumption.
first thing you do is open up your FTP client or telnet client putty.exe and go into your blog directory. If in case of FTP, grab this file.
/yourblogdir/wp-includes/media.php
open up the file. using your text editor, (I prefer editplus if i didnt have shell access to the server, and nano on the shell. No real Programmers use nano –see awesome xkcd.com panel on the bottom )and do a search for this string,
function gallery_shortcode($attr)
this should be line 400 if you are using putty.exe, look for this bit of code below, and change the “columns” from 3 to 4. and save.
now also remember you have to take in consideration what your width of your post frame is.
extract(shortcode_atts(array(
'order' => 'ASC',
'orderby' => 'menu_order ID',
'id' => $post->ID,
'itemtag' => 'dl',
'icontag' => 'dt',
'captiontag' => 'dd',
'columns' => 4,
'size' => 'thumbnail',
), $attr));
All set. Have fun Blogging.
from xkcd.com

real programmers use nano

