我在一个使用 Timber starter 主题的 wordpress 网站上工作(链接如下)。我无法让路由正常工作。当我添加到“functions.php”的路由并尝试浏览到该页面时,我得到 404。无法弄清楚出了什么问题。
木材启动器主题:https ://github.com/timber/starter-theme
我的路由代码(functions.php):
Routes::map('video', function(){
Routes::load('video.php');
});