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
{{ message }}
Repository navigation
Archive widget uses wrong slug if has_archive is defined as a string #19
Currently the plugin uses the CPT's post type slug, but when defining the CPT, it is possible to assign a specific archive slug.
E.g. for post type "movie" a single movie would be at site.com/movie/the-lion-king, while a movie index or archive view might be at site.com/movielist/2020/12. The plugin currently would use site.com/movie/2020/12, which would 404.
The fix is simple. In /inc/widget-custom-post-type-archive.php
Activity
WillPresley commentedon Mar 4, 2022
Just coming in to say thanks for this, and also @ykyu you have an extra semicolon as the 3rd-to-last character.