You are return the translation in your function, not printing it. using `<?php echo date_translation(); ?>` should solve the problem. (given that functions.php is initiated at the time you use the function) Edit: In order to follow Wordpress convention, you chould call the function `get_date_translation()`. If you want the function to echo the result instead, you should call it `the_date_translation()`