{"id":582,"date":"2021-01-27T15:00:52","date_gmt":"2021-01-27T14:00:52","guid":{"rendered":"https:\/\/devowl.io\/?post_type=knowledge-base&#038;p=582"},"modified":"2021-02-10T13:10:57","modified_gmt":"2021-02-10T12:10:57","slug":"real-category-management-kategoriebaum-aktivieren","status":"publish","type":"knowledge-base","link":"https:\/\/devowl.io\/de\/knowledge-base\/real-category-management-activate-category-tree\/","title":{"rendered":"Wie kann ich den Kategoriebaum f\u00fcr einen Beitragstyp aktivieren?"},"content":{"rendered":"<section class=\"l-section wpb_row height_medium\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>You have Real Category Management installed, but you don&#8217;t see the category tree next to the table with all your posts, pages, etc.? Sometimes you need to enable it for your post type, and we will explain how to do it.<\/p>\n<h2>Supported post types<\/h2>\n<p>Real Category Management can show the category tree for the following views:<\/p>\n<ul>\n<li>Posts &gt; All Posts<\/li>\n<li>Pages &gt; All Pages (only in PRO version)<\/li>\n<li>Products &gt; All Products (if WooCommerce is installed; only in PRO version)<\/li>\n<li>Custom Post Type &gt; All (e.g. Movies, Team, Templates; only in PRO version)<\/li>\n<\/ul>\n<p>After you have installed and activated the plugin, you <strong>should see the tree view for posts, pages and WooCommerce products immediately.<\/strong><\/p>\n<h2>Enable tree view for custom post types<\/h2>\n<p>You can enable the tree view for any custom post type in your WordPress (PRO version only). The only requirement is that your custom post type has the hierarchical property enabled, as we use the <code class=\"\" data-line=\"\">hierarchical<\/code> structure of the post type taxonomies to display the tree view.<\/p>\n<h3>Custom post type with Custom Post Type UI (CPT UI) created<\/h3>\n<p>If you have created the custom post type with the plugin <a href=\"https:\/\/de.wordpress.org\/plugins\/custom-post-type-ui\/\" target=\"_blank\" rel=\"noopener\">Custom Post Type UI<\/a>, go to <em>CPT UI &gt; Add\/Edit Post Types &gt; Edit Post Type &gt; Select [name of your post type] &gt; Settings &gt; Hierarchical<\/em> in your WordPress backend and set it&#8217;s value to <code class=\"\" data-line=\"\">True<\/code>.<\/p>\n<\/div><\/div><div class=\"w-image us_custom_70facfb4 align_none\"><a ref=\"magnificPopup\" href=\"https:\/\/devowl.io\/wp-content\/uploads\/knowledge-base\/enable-hierarchical-property-in-custom-post-type-ui-for-a-custom-post-type.png\" aria-label=\"Enable hierarchical property in Custom Post Type UI for a custom post type\" class=\"w-image-h\"><img decoding=\"async\" width=\"890\" height=\"253\" src=\"https:\/\/devowl.io\/wp-content\/uploads\/knowledge-base\/enable-hierarchical-property-in-custom-post-type-ui-for-a-custom-post-type-890x253.png\" class=\"attachment-large size-large\" alt=\"Enable hierarchical property in Custom Post Type UI for a custom post type\" loading=\"lazy\" srcset=\"https:\/\/devowl.io\/wp-content\/uploads\/knowledge-base\/enable-hierarchical-property-in-custom-post-type-ui-for-a-custom-post-type-890x253.png 890w, https:\/\/devowl.io\/wp-content\/uploads\/knowledge-base\/enable-hierarchical-property-in-custom-post-type-ui-for-a-custom-post-type-326x93.png 326w, https:\/\/devowl.io\/wp-content\/uploads\/knowledge-base\/enable-hierarchical-property-in-custom-post-type-ui-for-a-custom-post-type-16x5.png 16w, https:\/\/devowl.io\/wp-content\/uploads\/knowledge-base\/enable-hierarchical-property-in-custom-post-type-ui-for-a-custom-post-type-652x185.png 652w, https:\/\/devowl.io\/wp-content\/uploads\/knowledge-base\/enable-hierarchical-property-in-custom-post-type-ui-for-a-custom-post-type-1780x506.png 1780w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/a><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3>Custom post type as code created<\/h3>\n<p>If you have created the post type in your code, make sure that the <code class=\"\" data-line=\"\">hierarchical<\/code> property has the value <code class=\"\" data-line=\"\">true<\/code>.<\/p>\n<pre><code class=\"language-php\" data-line=\"\">$args = array(\n    [...]\n    &#039;hierarchical&#039; =&gt; true,\n);\n\nregister_post_type( &#039;Recipe&#039;, $args );<\/code><\/pre>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"template":"","topic":[33],"class_list":["post-582","knowledge-base","type-knowledge-base","status-publish","hentry","topic-common-issues-rcm"],"acf":[],"_links":{"self":[{"href":"https:\/\/devowl.io\/de\/wp-json\/wp\/v2\/knowledge-base\/582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devowl.io\/de\/wp-json\/wp\/v2\/knowledge-base"}],"about":[{"href":"https:\/\/devowl.io\/de\/wp-json\/wp\/v2\/types\/knowledge-base"}],"version-history":[{"count":0,"href":"https:\/\/devowl.io\/de\/wp-json\/wp\/v2\/knowledge-base\/582\/revisions"}],"wp:attachment":[{"href":"https:\/\/devowl.io\/de\/wp-json\/wp\/v2\/media?parent=582"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/devowl.io\/de\/wp-json\/wp\/v2\/topic?post=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}