[WordPress] 外掛分享: Hreflang Customizer

首頁外掛目錄 › Hreflang Customizer
WordPress 外掛 Hreflang Customizer 的封面圖片
40+
安裝啟用
★★★★★
5/5 分(2 則評價)
25 天前
最後更新
100%
問題解決
WordPress 5.8+ PHP 7.0+ v1.2.1 上架:2026-04-27

內容簡介

Hreflang Customizer 是一款免費的 WordPress 外掛,能自動為您的網站頁面生成 hreflang 標籤,無需安裝多語言外掛。它幫助搜尋引擎識別每個頁面的語言和地區,避免多語言或多地區網站的重複內容問題,提升正確版本的排名。

【主要功能】
• 無需翻譯外掛即可獨立運作
• 支援 Weglot 的翻譯 URL 映射
• 超過 180 種語言和地區變體的可搜尋語言選擇器
• 每頁的 hreflang 控制功能
• 網站範圍的 hreflang 審核工具
• XML 網站地圖支援

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Hreflang Customizer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Hreflang Customizer is a free plugin that generates hreflang tags for your WordPress pages automatically. It works on any site — no multilingual plugin is required.
Hreflang tags tell search engines which language and region each page targets. This prevents duplicate-content issues across multilingual or multi-regional sites and helps the right version of your page rank in the right country.
Key Features

✅ Works without any translation plugin — standalone mode out of the box
✅ Also integrates with Weglot for translated URL mapping
✅ Searchable language picker with 180+ languages and regional variants
✅ Selected languages shown as removable tag chips with language codes
✅ Language list cached via WordPress Transients API (no repeated API calls)
✅ NEW: Per-page hreflang control — override languages, map custom URLs, or disable tags on any page or post
✅ NEW: Site-wide Hreflang Audit — detect invalid locales, duplicates, missing x-default and self-reference issues
✅ NEW: XML sitemap support — dedicated /hreflang-sitemap.xml plus Yoast SEO sitemap integration
✅ Clean, modern admin UI — fully responsive
✅ No upsells, no premium tier — 100% free

How It Works
Standalone mode: Select your target language codes in the settings page. The plugin outputs one tag per selected code in the of every page, pointing to the canonical URL of that page.
Weglot mode: If Weglot is installed and active, the plugin maps Weglot’s translated URLs to your selected hreflang codes automatically.
Per-Page Hreflang Control (v1.2.0)
Every page, post and public custom post type gets a Hreflang Settings meta box in the editor where you can:

Disable hreflang tags entirely on that page (useful for login, policy or thank-you pages)
Limit output to a subset of your global languages — perfect when a post only exists in some languages
Map each language to a custom URL — ideal for ccTLD or subdomain setups (e.g. example.de, fr.example.com)
Set a custom x-default URL for that specific page

Hreflang Audit Tool (v1.2.0)
Go to Hreflang > Audit and click Run Audit. The plugin checks every public URL for:

Invalid locale codes (wrong format, underscores instead of hyphens)
Missing self-referencing tags
Missing x-default fallback
Duplicate locale declarations
Relative (non-absolute) URLs
Mixed http/https protocols

Results are shown with pass/warning/error badges and can be exported to CSV for client reports.
XML Sitemap Support (v1.2.0)

A dedicated sitemap at /hreflang-sitemap.xml lists every URL with its xhtml:link hreflang annotations — the method Google recommends for large sites
Automatic Yoast SEO integration: hreflang alternates are appended to every Yoast sitemap entry
The sitemap is announced in your robots.txt automatically

Example Output

Third-Party Service
This plugin optionally fetches an extended language list from https://app.seo-hreflang.com/api/languages to supplement its built-in language database. The request is made at most once every 12 hours. No personal data, user data, or site content is transmitted — the request contains no body payload. The result is cached locally using the WordPress Transients API.
If the external service is unavailable, the plugin automatically falls back to its built-in list of 180+ languages and continues to work normally.

Service URL: https://app.seo-hreflang.com/
Privacy Policy: https://seo-hreflang.com/privacy-policy/

延伸相關外掛

文章
Filter
Mastodon