{"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-10-21T19:00:31","modified_gmt":"2026-10-21T16:00:31","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<p><iframe title=\"\u0627\u0636\u0627\u0641\u0647 \u062a\u0635\u0646\u064a\u0641 - \u0648\u0648\u0631\u062f\u0628\u0631\u064a\u0633\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/kVXT7_bFVWI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>Related service: <a href=\"https:\/\/www.hyyat.com\/en\/wordpress-hosting\/\">fast WordPress hosting<\/a> from Hyyat Host, with support that replies within 24 hours.<\/p>\n<div class=\"hy-relkb\" style=\"background:#f6f7fb;border-left:4px solid #1dca94;border-radius:10px;padding:14px 18px;margin:28px 0 10px;line-height:1.8\"><strong>Related guides<\/strong><\/p>\n<ul style=\"margin:8px 0 6px;padding-left:20px\">\n<li><a href=\"https:\/\/www.hyyat.com\/knowledgebase\/%d8%aa%d8%b9%d8%b7%d9%8a%d9%84-%d8%a7%d8%b6%d8%a7%d9%81%d8%a7%d8%aa-%d9%88%d9%88%d8%b1%d8%af%d8%a8%d8%b1%d9%8a%d8%b3-%d9%85%d9%86-%d8%a7%d9%84%d8%b3%d9%8a-%d8%a8%d9%86%d9%84\/\">Disabling WordPress Plugins from cPanel<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/knowledgebase\/%d8%a7%d8%b6%d8%a7%d9%81%d9%87-%d9%88%d8%a7%d8%b2%d8%a7%d9%84%d9%87-%d8%b9%d9%86%d8%b5%d8%b1-%d9%85%d9%86-%d8%a7%d9%84%d9%82%d8%a7%d8%a6%d9%85%d8%a9-%d9%81%d9%8a-%d9%88%d9%88%d8%b1%d8%af%d8%a8%d8%b1\/\">How to Add and Remove Menu Items in WordPress<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/knowledgebase\/%d8%b7%d8%b1%d9%8a%d9%82%d8%a9-%d8%aa%d9%81%d8%b9%d9%8a%d9%84-%d8%a7%d9%84%d8%a5%d8%aa%d8%b5%d8%a7%d9%84-%d8%a7%d9%84%d8%a2%d9%85%d9%86-https-%d9%81%d9%8a-%d9%85%d9%88%d9%82%d8%b9%d9%83-%d8%a7%d9%84\/\">How to Enable HTTPS on Your Website<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/knowledgebase\/%d8%b4%d8%b1%d8%ad-%d8%a7%d8%b6%d8%a7%d9%81%d9%87-%d9%85%d9%82%d8%a7%d9%84-%d9%81%d9%8a-%d9%88%d9%88%d8%b1%d8%af%d8%a8%d8%b1%d9%8a%d8%b3\/\">How to Add a New Post in WordPress (Step by Step)<\/a><\/li>\n<\/ul>\n<\/div>\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":{"inline_featured_image":false,"_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-11","word_count":265,"total_views":"1","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}]}}