Custom gallery in wp3.5

I guess you were sorta correct, @david.binda, lol!

After a lot of reading, and experimenting, I added the code below to the else statement in my functions file, and it appears to be working as it did before, although the process seems a lot “bulkier” with the new gallery trying to do it’s thing.

                $post_content = get_the_content();
                preg_match('/\[gallery.*ids=.(.*).\]/', $post_content, $ids);
                $array_id = explode(",", $ids[1]);