News (Built-in Posts)
WordPress's built-in posts are used for the news. They are set up in settings/post-types/post.php.
// settings/post-types/post.php
return [
'post_type' => 'post', // Keep it as 'post'
'archive' => 'news', // /news/ (with /news/page/2/ and /news/feed/)
'permalink' => ['structure' => '/%postname%/'], // /news/sample-post/
'seo' => ['title' => 'ニュース'],
];
archiveis the slug of the archive. TOBIUO creates the archive at/news/.permalinkis the post URL structure under the archive. To include the date, write'/%year%/%monthnum%/%postname%/'(/news/2026/10/sample-post/).seoholds the archive's SEO settings (title/description/noindex). See SEO.
Permalinks
The post URL structure (/news/%postname%/, the archive followed by permalink) is written to Settings → Permalinks when an administrator opens the admin screens.
- Don't change the structure on the Settings → Permalinks screen. A different structure is put back the next time the admin screens are opened, and the screen says so.
- After changing
archiveorpermalink, open Settings → Permalinks once to regenerate the rewrite rules. - Tools → Content Structure (TOBIUO) shows whether the stored structure matches the theme.
Templates
| Page | URL | Template |
|---|---|---|
| Archive | /news/ | archive.php |
| Category / tag / date archive | /news/category/info/, /news/2026/ | archive.php |
| Post | /news/sample-post/ | single.php |
Link to the archive with get_post_type_archive_link('post').
warning
The category, tag and date archives are placed under /news/. Keep 'with_front' => false in the rewrite of other post types and taxonomies; otherwise /news/ is put in front of their URLs too.