alleyinteractive / alleyinteractive/wp-seo

Add meta description, canonical URL, and robots settings for Search Results and 404 pages

Đang mở
#184 0 bình luận 0 reaction 1 người được giao Được @willowCeleste nhận Xem trên GitHub
Ngôn ngữ chính
PHP
Star
45
Fork
13
Merge trung bình
12 ngày 16 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Description

Issue #161's MVP requirements call for the ability to set title/description semi-programmatically for all archive and special pages (post types, taxonomies, authors, homepage, search page, etc). Every other context (Home, post type archives, taxonomy archives, Author archives, Date archives) gets a full settings section via `register_settings_section()` in `WP_SEO_Settings::register_settings()` — title, description, keywords, canonical URL, and robots fields. Search Results and 404 pages only register a title field (`search_title` / `404_title`); no description, canonical URL, or robots settings exist for them.

### Use Case

Site admins want the same level of control over the ``, meta description, canonical URL, and robots directives for search results and 404 pages as they already have for every other archive type, for consistency and to avoid duplicate-content / indexing issues on these pages.

### Proposed Solution

Bring the Search Results and 404 sections up to parity with the other archive-type sections by routing them through `register_settings_section()` (or the equivalent fields it registers) so `search_description`/`404_description`, canonical URL, and robots settings exist and are honored in `wp_title()`/`wp_head()`/`wp_robots()`.

### Related

- #161 (parent MVP tracking issue)
- #169 (Open Graph support for Homepage, Taxonomies, Search and Archive pages) — that issue covers only the Open Graph tags for these contexts, not the base title/description/canonical/robots settings this issue addresses

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start in WP_SEO_Settings::register_settings() and compare the Search Results and 404 registrations with the sections created through register_settings_section(). Then trace wp_title(), wp_head(), and wp_robots() to verify that description, canonical URL, and robots settings are honored for both contexts; done means both sections provide and use those settings consistently.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
php, wordpress
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.