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

The output is empty ? Double check that Wordpress is well installed and you have added WP_INSTALLED=1 in your environment

Last updated