Router
If you want to use Wordpress permalinks and posts structures you need to load bundle routing definitions by editing or creating /config/routes.yaml
file.
_wordpress:
resource: "@WordpressBundle/config/routing.php"
Now clear the cache
$ php bin/console cache:clear
Router debugger should display Wordpress routes
$ php bin/console debug:router

$wp_rewrite
Wordpress variableLast updated
Was this helpful?