Feature: Support arbitrary front matter metadata, categories, tags, author, featured image and SEO fields
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Không có tệp triển khai hoặc bài kiểm thử nào được nêu tên; hãy bắt đầu bằng cách tìm các điểm vào hiện có cho front-matter checkout, import/export và push-validation, sau đó xem xét các tên hook và quy tắc quyền được đề xuất. Được xem là hoàn tất khi các tiêu chí chấp nhận được liệt kê đã được bao phủ, bao gồm các định dạng danh sách, các thuật ngữ phân cấp, việc xác thực nghiêm ngặt, các ánh xạ SEO và việc không tạo hoặc xóa tác giả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Push MD supports a fixed set of basic front matter keys (title, date, status, description). We should add support for arbitrary front matter metadata key-values. To begin, create hooks for front matter meta data, and add support for hierarchical categories, tags, author attribution, featured image, and SEO fields, complete with strict push validation to prevent typos.
We can create "master" reference files for categories etc, and support CRUD based on changes in these files. All this should respect the user permissions though. Special case: for authors - no create / delete support.
Features & How They Should Work
-
Extensible Arbitrary Front Matter Meta Support (Primary Feature):
- Add developer hook framework allowing any custom post meta or third-party plugin metadata to be registered, exported, and imported via Markdown front matter:
push_md_supported_frontmatter_keyspush_md_export_frontmatterpush_md_import_frontmatterpush_md_export_author&push_md_import_author
- Add developer hook framework allowing any custom post meta or third-party plugin metadata to be registered, exported, and imported via Markdown front matter:
-
Master Reference Files & Strict Validation:
- Generate
categories.md,tags.md, andauthors.mdduring checkout/seed. - Pushing a post with an unknown category, tag, or author that is not in WordPress or the reference files should trigger a strict validation error to prevent typos.
- Generate
-
Categories, Tags, Authors & Featured Image:
categories: Support YAML lists, JSON arrays (["Cat A", "Cat B"]), or comma-separated strings. Full support for hierarchical category paths using"Parent > Child"(e.g.,Tech > WordPress).tags: Support YAML/JSON lists or comma-separated tag strings.author: Match author by display name, username (user_login), nicename, or email address.featured_image: Resolve local path or attachment URL to WordPress attachment ID.
-
Built-in SEO Metadata:
- Build on top of the front matter hooks: supports
seo_title,seo_description, andseo_focus_keyword. - Automatically map to Rank Math or Yoast SEO post meta depending on which plugin is active.
- Build on top of the front matter hooks: supports
Acceptance Criteria
- Custom front matter keys can be registered via
push_md_supported_frontmatter_keys. - Front matter list parser supports YAML lists, JSON arrays, and comma-separated strings.
- Hierarchical categories (
Parent > Child) parse and map correctly. - Unknown terms/authors trigger a push validation error.
- Permission checks
- SEO fields map automatically to Rank Math / Yoast SEO meta.
- No creation or deletion of users from
authors.mdsync. Only updates.
- Ngôn ngữ chính
- PHP
- Star
- 22
- Fork
- 5
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/php-toolkit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Automattic/php-toolkit#89 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Automattic/php-toolkit#102 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
Automattic/php-toolkit#95 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Automattic/php-toolkit#91 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Automattic/php-toolkit#88 ·
Tất cả issue của Automattic/php-toolkit
Issue tương tự
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/safe-publish#594 ·
-
HttpClient
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
symfony/symfony-docs#23092 ·
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
Перевод устарел
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100