> For the complete documentation index, see [llms.txt](https://metabolism.gitbook.io/symfony-wordpress-bundle/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://metabolism.gitbook.io/symfony-wordpress-bundle/getting-started/router.md).

# 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.

```yaml
_wordpress:
    resource: "@WordpressBundle/config/routing.php"
```

Now clear the cache

```shell-session
$ php bin/console cache:clear
```

Router debugger should display Wordpress routes

```shell-session
$ php bin/console debug:router
```

![Routes generated from the global $wp\_rewrite Wordpress variable](https://2528877867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZhdVRcuWfQoG77xbyM8p%2Fuploads%2F18jsTR7eGhAnfO5Yjo8f%2FScreenshot%20from%202022-02-27%2023-38-47.png?alt=media\&token=9def1bf2-66cd-4587-9626-c7c00ff1aaff)

{% hint style="info" %}
**The output is empty ?** Double check that Wordpress is well installed and you have added `WP_INSTALLED=1` in your environment
{% endhint %}
