We can create custom category attributes with text fields programmatically in Magento 2 using a simple module.
In our demo, we have created a simple text field attribute for a category to save the value and use it on the front end.
You can see a category attribute in the backend using Catalog -> Categories Page.
Click on Any category and you can see our custom attribute in General Section after the category name.
If you are interested to create a drop-down select category attribute, Learn More Continue reading “How to create category attribute Programmatically in Magento 2?”