From fb8e7870bc188d401cc20b2bd7d80431d9d6a3db Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 20 Jun 2024 20:54:23 +0200 Subject: [PATCH] feat: add custom post type for letters to the editor Updated README to mention the new custom post type for letters to the editor. Adjusted function naming in `functions.php` to reflect the new feature. This enhancement allows users to manage and display editorial letters more effectively. --- README.md | 2 ++ functions.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bda97a7..76aefc5 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,5 @@ It includes: - Prefix configurable in Customizer (please change this to your own prefix) - DOI link on the article page - DOI resolver (https://example.com/nn.nnnn/xyz* forwards to the respective article) + +- Custom post type for letters to the editor \ No newline at end of file diff --git a/functions.php b/functions.php index 0939a85..d9d77d4 100644 --- a/functions.php +++ b/functions.php @@ -457,7 +457,7 @@ function create_letter_post_type() { } add_action('init', 'create_letter_post_type'); -function add_article_meta_boxes() { +function add_letter_meta_boxes() { add_meta_box( 'article_authors', __('Authors', 'duck-behavior-journal'),