How do I add a \'media_gallery\" attribute type to products flat table, so that it can be used in product listing?
To change it programmatically, you could do.
$setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $setup->updateAttribute('catalog_product', '{field_code_here}', 'used_in_product_listing', 1);
Then reindex.