Some useful code pieces for Wordpress + Magic Fields 2 and so on