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
The example provided in the Registering a Pattern Category documentation is incorrect because WordPress does not support / in slugs. Instead, it automatically converts / to -, leading to unintended duplicate categories.
Issue Description
The example provided in the Registering a Pattern Category documentation is incorrect because WordPress does not support
/
in slugs. Instead, it automatically converts/
to-
, leading to unintended duplicate categories.URL of the Page with the Issue
https://developer.wordpress.org/themes/patterns/registering-patterns/#registering-a-pattern-category
Section of Page with the issue
Registering a Pattern Category
Why is this a problem?
Suggested Fix
Try adding a new custom pattern category for your theme. Add this code to your theme’s functions.php file:
Now try adding the
themeslug-custom
category to any block pattern:The text was updated successfully, but these errors were encountered: