-
Hi there,
I do have the following code for my custom post type:
register_post_type( 'guide', array( 'labels' => array( 'name' => __('Guides'), 'singular_name' => __('Guide') ), 'public' => true, 'has_archive' => true, 'hierarchical' => true, 'rewrite' => array('slug' => '/', 'with_front' => false), 'show_in_rest' => true, 'menu_icon' => 'dashicons-list-view', 'supports' => array('title', 'editor', 'author', 'thumbnail', 'comments', 'revisions', 'page-attributes'), 'taxonomies' => array('category', 'post_tag'), 'menu_position' => 4, ) );
As you can see, its hierarchical and has an archive.
I’ve added subpages, see: https://ibb.co/KqNScpd
Subpages wp-adminBut, when i go to my HTML sitemap: https://debeste.com/sitemap/ or my sitemap.xml https://debeste.com/guide-sitemap.xml
It doesn’t show the subpages. Is there any fix?
Thanks,
Jasper
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The ticket ‘Custom Post Type Subpages Are Not in Sitemap’ is closed to new replies.