You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation everything should work fine and I can load the initial Route 'verzeichnis' - but as soon as I try to load one of the sub-routes I get the default behaviour of the index.php which shows my posts.
What I am wondering is if it would be possible to define a single dynamic route eg.
Regarding optional route patterns, try /:one?/:two?/:three?
Haven't tried it but I think it should work.
Are you sure your WP_Query is ok?
Update:
Looks like I was wrong, there is no logic for checking for optional patterns.
You can Extend Routes class and add that logic.
Optional route patterns work (Didn't look in AltoRouter.php)
$query
The query you want to use, it can accept a string or array just like Timber::get_posts -- use the standard WP_Query syntax (or a WP_Query object too)
I have the following routes in my functions.php:
According to the documentation everything should work fine and I can load the initial Route 'verzeichnis' - but as soon as I try to load one of the sub-routes I get the default behaviour of the index.php which shows my posts.
What I am wondering is if it would be possible to define a single dynamic route eg.
where the parameters that are here dynamic are optional but not necessary.
Please update the documentation and or let me know where I could find some sort of support if this is not the right place. Thanks in advance!
The text was updated successfully, but these errors were encountered: