Sage10 Custom Posttype archive does not render

Hi all,

I created a custom post type with poet as it follows:

  'post' => [
        'news' => [
            'enter_title_here' => __('Enter News title', 'bdb'),
            //'menu_icon' => 'dashicons-news-alt',
            'supports' => ['title', 'revisions'],
            'show_in_rest' => true,
            'has_archive' => true,
            'public' => true,
            'show_in_nav_menus' => true,
            'rewrite' => array('slug' => 'nachrichten'),
            'labels' => [
                'singular' => __('News', 'bdb'),
                'plural' => __('News', 'bdb'),
            ],
        ],
]

post type available in dashboard. Now I try to render the archive, already created an archive-news.blade.php in sage root, but will not render under /nachrichten. What is wrong in this case?

the issue was related to permalinks.

1 Like

Glad that you figured it out. I recently ran into this with a taxonomy too and was going to suggest wp rewrite flush --hard to get that new permalink rewrite in place. I’ll leave that here for future souls.