Answer the question
In order to leave comments, you need to log in
How to add a field to fill in wordpress category page (without plugins)?
Hello Toaster!
There is a description field on the category or brand page. The task is to add a field for a shortcode, banner, etc., and prioritize the field with description under the list of products so that it does not interfere visually and stuff SEO stuff there. Is there any tutorial on adding new fields in the category via function.php?
Answer the question
In order to leave comments, you need to log in
Look towards hooks product_cat_add_form_fields
- Adding a field on the create category page create_product_cat
- Saving the field value entered by the user product_cat_edit_form_fields
- Adding a field on the category edit page edited_product_cat
- Saving the value of the field entered by the user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question