How do i synchronize Custom Fields in Wordpress in functions.php file.

You need to really read this wordpress plugin: http://www.advancedcustomfields.com I've been utilizing it for around 10 sites and it is great! Because the latest update it's posible to export your custom fields to some PHP file which you'll incorporate your functions.php