Journal Post Type
The theme provides a custom journal post type for personal journal entries and blog-style content separate from WordPress default posts.
Features
- Gutenberg Editor Support: Full block editor capabilities
- Public Archive: Accessible at
/journalURL - Standard Post Features: Title, content, featured images, excerpts, custom fields, revisions
- REST API Support: Available via WordPress REST API
- Admin UI: Dedicated menu item with edit icon
Registration Details
$args = array(
'label' => __('Journal', 'chubes-theme'),
'public' => true,
'show_ui' => true,
'menu_position' => 6,
'menu_icon' => 'dashicons-edit',
'supports' => array('title', 'editor', 'thumbnail', 'excerpt', 'custom-fields', 'revisions'),
'has_archive' => true,
'rewrite' => array('slug' => 'journal'),
'show_in_rest' => true,
);
register_post_type('journal', $args);
Usage
Creating Journal Entries
- In WordPress admin, navigate to Journal > Add New
- Use the Gutenberg editor to create content
- Set featured images, categories, and tags as needed
- Publish to make entries available at
/journal
Displaying Journal Content
The theme automatically provides:
- Archive template at
/journalshowing all entries - Single entry templates for individual journal posts
- Integration with theme’s search functionality
- Homepage integration (latest journal entries can be displayed)
Technical Implementation
- Location:
inc/journal/journal-post-type.php - Hook: Registered on
initaction - Templates: Uses theme’s standard template hierarchy
- Search Integration: Included in theme’s search post types filter
Notes
This post type is intended for personal journal/blog content and is separate from the default WordPress post type. Documentation and game content are handled by respective plugins (chubes-docs and chubes-games).