ColorlibHQ / unapp

Free Bootstrap WordPress landing page theme
20 stars 11 forks source link

Fix archive query with date parameter 'm' #38

Open Gustl22 opened 4 years ago

Gustl22 commented 4 years ago

If having a new installation of Wordpress and use the wp built-in archives link in the sidebar, you get a query like: http://localhost:8000/?m=202003/ for March 2020.

This can't be handled by the unapp breadcrumb.

See also:

Notice: In the breadcrumb you can then call archive of a whole year. wp_title doesn't like years only as query parameter m, although it is valid. So I oriented on wp twentytwenty theme to correctly show archive titles.

Feel free to adapt the fixes.