{"id":12295,"date":"2025-05-07T04:14:36","date_gmt":"2025-05-07T04:14:36","guid":{"rendered":"https:\/\/www.kadencewp.com\/help-center\/?post_type=docs&#038;p=12295"},"modified":"2026-04-22T14:42:54","modified_gmt":"2026-04-22T14:42:54","password":"","slug":"enable-categories-and-tags-for-pages","status":"publish","type":"docs","link":"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-theme\/enable-categories-and-tags-for-pages\/","title":{"rendered":"How to Enable Categories and Tags for Pages"},"content":{"rendered":"\n<p>By default, WordPress is designed to distinguish between posts and pages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Posts<\/strong> are intended for blog entries or articles. They are organized using categories and tags (which are types of <em>taxonomies<\/em>).<\/li>\n\n\n\n<li><strong>Pages<\/strong> are intended for static content, like About or Contact pages. They do not have categories or tags enabled by default because they are usually stand-alone.<\/li>\n<\/ul>\n\n\n\n<p>However, you might have use cases where it makes sense to assign categories or tags to pages. In that case, you can enable them with a small tweak.<\/p>\n\n\n\n<p>For example, you might want to create a <a href=\"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-blocks\/advanced-query-loop-block\/\">Query Loop Adv<\/a> block that displays Pages filtered by category.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Option 1: Add Custom Code to Your Theme<\/h3>\n\n\n\n<p>Add this code snippet by following our guide <strong><em><a href=\"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-theme\/how-to-add-a-custom-filter-or-function-with-code-snippets\/\">here<\/a><\/em><\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">function enable_categories_and_tags_for_pages() {<br>    \/\/ Add category and tag support to 'page'<br>    register_taxonomy_for_object_type( 'category', 'page' );<br>    register_taxonomy_for_object_type( 'post_tag', 'page' );<br>}<br>add_action( 'init', 'enable_categories_and_tags_for_pages' );<\/pre>\n\n\n\n<p><strong>What this does:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>register_taxonomy_for_object_type<\/code> tells WordPress to apply the existing <em>category<\/em> and <em>tag<\/em> taxonomies to pages.<\/li>\n\n\n\n<li>After adding this code, you\u2019ll see categories and tags in the Page editor sidebar.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Option 2: Use a Plugin<\/h3>\n\n\n\n<p>You can also look for plugins that enable categories and tags for pages. One example is https:\/\/wordpress.org\/plugins\/pages-with-category-and-tag<\/p>\n\n\n\n<p>The functionality will be added without custom coding after installing and activating the plugin.<\/p>\n\n\n\n<p><em>Note: There are various plugins that offer similar functionality. The one listed above is just an example. You are welcome to search the <a class=\"\" href=\"https:\/\/wordpress.org\/plugins\/\" target=\"_blank\" rel=\"noopener\">WordPress.org plugin repository<\/a> or other trusted sources to find a plugin that best fits your needs.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, WordPress is designed to distinguish between posts and pages: However, you might have use cases where it makes sense to assign categories or tags to pages. In that case, you can enable them with a small tweak. For example, you might want to create a Query Loop Adv block that displays Pages filtered&#8230;<\/p>\n","protected":false},"author":130753,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"doc_category":[394],"doc_tag":[],"knowledge_base":[6],"class_list":["post-12295","docs","type-docs","status-publish","hentry","doc_category-theme-general","knowledge_base-kadence-theme"],"year_month":"2026-04","word_count":271,"total_views":"2482","reactions":{"happy":"1","normal":"0","sad":"2"},"author_info":{"display_name":"teejayhidalgo","author_link":"https:\/\/www.kadencewp.com\/help-center\/author\/teejayhidalgo\/"},"doc_category_info":[{"term_name":"General WordPress","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/theme-general\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"Kadence Theme","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/","term_slug":"kadence-theme"}],"knowledge_base_slug":["kadence-theme"],"taxonomy_info":{"doc_category":[{"value":394,"label":"General WordPress"}],"knowledge_base":[{"value":6,"label":"Kadence Theme"}]},"featured_image_src_large":false,"comment_info":0,"_links":{"self":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/12295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/users\/130753"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/comments?post=12295"}],"version-history":[{"count":5,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/12295\/revisions"}],"predecessor-version":[{"id":12301,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/12295\/revisions\/12301"}],"wp:attachment":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/media?parent=12295"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_category?post=12295"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_tag?post=12295"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/knowledge_base?post=12295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}