{"id":18261,"date":"2026-09-26T07:12:27","date_gmt":"2026-09-26T04:12:27","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/how-to-add-categories-in-wordpress\/"},"modified":"2026-09-26T07:12:27","modified_gmt":"2026-09-26T04:12:27","password":"","slug":"how-to-add-categories-in-wordpress","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-add-categories-in-wordpress\/","title":{"rendered":"How to Add Categories and Subcategories in WordPress"},"content":{"rendered":"<div class=\"hy-tldr\" style=\"background:#f6f7fb;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:0 0 20px;line-height:1.8\"><strong>In short:<\/strong> In the dashboard go to <strong>Posts \u2192 Categories<\/strong>, type the category name, choose a <strong>Parent Category<\/strong> if you want a subcategory, then click <strong>Add New Category<\/strong>. Then select it for any post from the sidebar while editing.<\/div>\n<h2>Steps to add a new category<\/h2>\n<ol>\n<li>In the dashboard go to <strong>Posts \u2192 Categories<\/strong>.<\/li>\n<li>Type the <strong>Name<\/strong> as visitors will see it.<\/li>\n<li>Type the <strong>Slug<\/strong>, the part that appears in the URL; keep it short.<\/li>\n<li>For a <strong>subcategory<\/strong>, choose its main category under <strong>Parent Category<\/strong>.<\/li>\n<li>Add a short <strong>Description<\/strong> if you like; some themes show it on the category page.<\/li>\n<li>Click <strong>Add New Category<\/strong>.<\/li>\n<\/ol>\n<h2>Assign posts to a category<\/h2>\n<ul>\n<li><strong>One post:<\/strong> while editing it, tick the category under <strong>Categories<\/strong> in the sidebar and click Update. See <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-add-a-new-post-in-wordpress\/\">how to add a post in WordPress<\/a>.<\/li>\n<li><strong>Many existing posts at once:<\/strong> in <strong>Posts \u2192 All Posts<\/strong> tick the posts, choose <strong>Edit<\/strong> from Bulk actions and click Apply, tick the category, then click <strong>Update<\/strong>.<\/li>\n<\/ul>\n<h2>Default category and deleting categories<\/h2>\n<ul>\n<li>Any post without a category goes to <strong>Uncategorized<\/strong>. You can rename it or choose another default in <strong>Settings \u2192 Writing<\/strong>.<\/li>\n<li>Deleting a category does not delete its posts; they move to the default category.<\/li>\n<\/ul>\n<p>To show the category in your site menu, see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-add-and-remove-menu-items-in-wordpress\/\">how to add menu items<\/a>.<\/p>\n<h2>Video tutorial (Arabic)<\/h2>\n\t\t<style>\n\t\t\t.ose-uid-8484bd1c2f4b344c587b8ade778f284c{\n                text-align: left;\n                position: relative;\n            }\n\t\t\t.ose-uid-8484bd1c2f4b344c587b8ade778f284c .watermark {\n                border: 0;\n                position: absolute;\n                bottom: 10%;\n                right:  10%;\n                max-width: 150px; max-height: 75px;\n                opacity: 0.2;\n                z-index: 5;-o-transition: opacity 0.5s ease-in-out;-moz-transition: opacity 0.5s ease-in-out;-webkit-transition: opacity 0.5s ease-in-out;transition: opacity 0.5s ease-in-out;\n            }\n\t\t\t.ose-uid-8484bd1c2f4b344c587b8ade778f284c .watermark:hover {\n                                                   opacity: 1;\n                                               }\n\t\t<\/style>\n\t\t<div class=\"ose-youtube ose-uid-8484bd1c2f4b344c587b8ade778f284c ose-embedpress-responsive\" style=\"width:600px; height:550px; max-height:550px; max-width:100%; display:inline-block;\" data-embed-type=\"Youtube\"><iframe allowfullscreen width=\"600\" height=\"550\" src=\"https:\/\/www.youtube.com\/embed\/kVXT7_bFVWI?feature=oembed&color=red&rel=0&autoplay=0&controls=0&start=&end=&fs=0&iv_load_policy=0&mute=0&playsinline=1&modestbranding=0&cc_load_policy=1\" frameborder=\"0\" allow=\"accelerometer; encrypted-media;accelerometer;autoplay;clipboard-write;gyroscope;picture-in-picture clipboard-write; encrypted-media; gyroscope; picture-in-picture\" referrerpolicy =origin loading=\"lazy\"><\/iframe><img decoding=\"async\" class=\"watermark\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2022\/11\/image10.jpeg\" alt=\"\" title=\"\"><\/div>\n<p>Related service: <a href=\"https:\/\/www.hyyat.com\/en\/wordpress-hosting\/\">fast WordPress hosting<\/a> from Hyyat Host, with 24\/7 support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short: In the dashboard go to Posts \u2192 Categories, type the category name, choose a Parent Category if you want a subcategory, then click Add New Category. Then select it for any post from the sidebar while editing. Steps to add a new category In the dashboard go to Posts \u2192 Categories. Type the [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2747],"doc_tag":[2411],"class_list":["post-18261","docs","type-docs","status-publish","hentry","doc_category-wordpress-explanations","doc_tag-wordpress"],"year_month":"2026-09","word_count":231,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"WordPress explanations","term_url":"https:\/\/www.hyyat.com\/en\/kb\/wordpress-explanations\/"}],"doc_tag_info":[{"term_name":"WordPress","term_url":"https:\/\/www.hyyat.com\/docs-tag\/wordpress\/"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18261"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18261\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18261"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18261"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}