Set permalink settings from functions.php