fixed ACF relation bug in functions.php