WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Head Meta Data

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Head Meta Data

由 Jeff Starr 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

🤖 The easy way to add meta tags to your site
🤖 Performance: light, fast, and user-friendly

Head Meta Data (HMD) improves the definition and semantic quality of your web pages by adding a custom set of <meta> tags to the <head> section of your web pages.

Basic Example

Display any set of custom meta tags for your site:

<head>

    <meta charset="utf-8">
    <meta name="abstract" content="Obsessive Web Development">
    <meta name="author" content="Perishable">
    <meta name="classification" content="Website Design">
    <meta name="copyright" content="Copyright Perishable Press - All rights Reserved.">
    <meta name="designer" content="Monzilla Media">
    <meta name="language" content="EN-US">
    <meta name="publisher" content="Perishable Press">
    <meta name="rating" content="General">
    <meta name="resource-type" content="Document">
    <meta name="revisit-after" content="3">
    <meta name="subject" content="WordPress, Web Design, Code & Tutorials">
    <meta name="template" content="Awesome Theme">
    <meta name="robots" content="index,follow">

    <!-- plus you can add your own custom tags! -->

</head>

SEO Example

Use shortcodes to dynamically output SEO meta tags:

<title>[hmd_post_title] | Your Awesome Website</title>
<meta name="description" content="[hmd_post_excerpt]">

This outputs dynamic titles and descriptions, useful for SEO. You also can add custom meta tags and markup on specific posts and pages. Check out Installation for more infos.

Features

  • Simple and easy to use
  • Clean, standards-based code
  • Customize all <meta> tags
  • Add your own custom <meta> tags
  • NEW: Add custom tags on any post or page
  • Use shortcodes to include dynamic information
  • Includes meta tags on all of your site’s web pages
  • Check out a Live Preview of your meta tags and custom tags
  • Automatically adds tags to the <head> section of all pages
  • Auto-populates tags using your site’s information
  • Choose HTML or XHTML format for meta tags
  • Supports Twitter Cards and Facebook Open Graph tags
  • Easily disable any unwanted tags
  • Option to reset default settings
  • Works with or without Gutenberg Block Editor
  • Regularly updated and “future proof”
  • Lightweight, fast, and secure

🤖 New! Check out Head Meta PRO »

Shortcodes

Shortcodes enable you to include dynamic bits of information in your meta tags. Head Meta Data currently provides the following shortcodes:

  • [hmd_post_excerpt] — post excerpt
  • [hmd_post_date] — post date
  • [hmd_post_author] — post author name
  • [hmd_post_title] — post title
  • [hmd_post_cats] — post categories
  • [hmd_post_tags] — post tags
  • [hmd_year] — current year
  • [hmd_tab] — adds tab space to markup

So you can display your own set of customized meta tags exactly as desired. See the Installation section for more information about the HMD shortcodes!

Pro Version Features

The Pro version can do everything the free version can do, PLUS:

  • Define meta tags for Custom Post Types
  • Define meta tags for each type of page-view (e.g., home, posts, pages, archive, search)
  • Define tags for Facebook (Open Graph)
  • Define tags for X (Twitter)
  • Define Facebook and X tags for each type of page view
  • 40+ advanced shortcut variables like %%POST_AUTHOR%% and %%ARCHIVE_TYPE%%
  • Dedicated “Meta Tags” meta box for posts and pages
  • Add custom meta tags to any post or page-view
  • Add custom script and style to any post or page-view
  • Meta Tags box integrates with SEO plugins
  • Additional meta tags beyond the free version
  • Dedicated setting for image_src link tag
  • Premium support for pro purchases

🤖 Level up your meta tags with Head Meta Pro »

More Info

Head Meta Data is designed to complete a site’s head construct by including some of the more obscure meta tags, such as “author”, “copyright”, “designer”, and so forth. As a matter of practicality, the more widely used tags such as “description” and “keywords” have been omitted, as they are already included via wide variety of plugins (such as “All in One SEO”) in a more dynamic way. Even so, adding “description”, “keyword”, or any other tags is easy from the plugin’s settings page.

Privacy

This plugin does not collect or store any user data. It does not set any cookies, and it does not connect to any third-party locations. Thus, this plugin does not affect user privacy in any way.

Head Meta Data is developed and maintained by Jeff Starr, 15-year WordPress developer and book author.

Support development

I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a donation or purchase one of my books:

  • The Tao of WordPress
  • Digging into WordPress
  • .htaccess made easy
  • WordPress Themes In Depth
  • Wizard’s SQL Recipes for WordPress

And/or purchase one of my premium WordPress plugins:

  • BBQ Pro – Super fast WordPress firewall
  • Blackhole Pro – Automatically block bad bots
  • Banhammer Pro – Monitor traffic and ban the bad guys
  • GA Google Analytics Pro – Connect WordPress to Google Analytics
  • Head Meta Pro – Ultimate Meta Tags for WordPress
  • Simple Ajax Chat Pro – Unlimited chat rooms
  • USP Pro – Unlimited front-end forms

Links, tweets and likes also appreciated. Thanks! 🙂

螢幕擷圖

  • Head Meta Data: Plugin Settings (panels toggle open/closed)

安裝方式

Installation

  1. Upload the plugin to your blog and activate
  2. Visit the settings to configure your options

More info on installing WP plugins

Shortcodes

Shortcodes enable you to include dynamic bits of information in your meta tags. Head Meta Data currently provides the following shortcodes:

  • [hmd_post_excerpt] — post excerpt
  • [hmd_post_date] — post date
  • [hmd_post_author] — post author name
  • [hmd_post_title] — post title
  • [hmd_post_cats] — post categories
  • [hmd_post_tags] — post tags
  • [hmd_year] — current year
  • [hmd_tab] — adds tab space to markup

So you can include any of these shortcodes in the “Custom Tags” setting, and the displayed information will reflect the current post being viewed. On non-post views, like the homepage, archives, and search results, the shortcodes display general information about the site:

  • [hmd_post_excerpt] — site description
  • [hmd_post_date] — date of latest post
  • [hmd_post_author] — site name
  • [hmd_post_title] — site description
  • [hmd_post_cats] — all view categories
  • [hmd_post_tags] — all view tags

🤖 Note: Many more shortcut variables available in the Pro version »

For example, we could add this meta tag via the “Custom Tags” setting:

<meta name="date" content="[hmd_post_date]">
<meta name="abstract" content="[hmd_post_title]">
<meta name="author" content="[hmd_post_author]">
<meta name="copyright" content="Copyright [hmd_year] Awesome Website">

Another example: use shortcodes to dynamically output SEO meta tags:

<title>[hmd_post_title] | Your Awesome Website</title>
<meta name="description" content="[hmd_post_excerpt]">

This outputs dynamic titles and descriptions, useful for SEO.

If you have ideas for other shortcodes, let me know!

Custom meta tags

Using this method, you can add custom meta tags to the <head> section of any post or page. Follow these steps:

  1. Visit the “Edit Post” or “Edit Page” screen
  2. Open the “Custom Fields” meta box
  3. Add a new custom field
  4. For the custom field Name, enter head-meta-data
  5. For the custom field Value, enter any tag/markup
  6. Save changes and done.

🤖 Note: The Pro version provides a Meta Tags Box UI for adding tags to individual posts and pages

For example, for the custom field value, we could enter the following markup:

<link rel="icon" type="image/png" href="/android.png" sizes="192x192">

After saving changes that exact code will be included in the post’s <head> section.

Tip: You can include tab spaces in the custom field value, for example:

        <link rel="icon" type="image/png" href="/android.png" sizes="192x192">

Useful for indenting code to align with other meta tags 😉

Tip: By default, any custom tags are displayed after the default meta tags. To disable the default meta tags on any post, add a new custom field with the name hmd_disable_default. Give it a value of 1. Save changes and done.

Upgrades

To upgrade Head Meta Data, remove the old version and replace with the new version. Or just click “Update” from the Plugins screen and let WordPress do it for you automatically.

Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database.

Restore Default Options

To restore default plugin options, either uninstall/reinstall the plugin, or visit the plugin settings > Restore Default Options.

Like the plugin?

If you like Head Meta Data, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!

Uninstalling

Head Meta Data cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.

常見問題集

To ask a question, suggest a feature, or provide feedback, contact me directly.

使用者評論

Very helpful!

LSBK 2025 年 7 月 10 日
It helped me handling all meta data in an easy way.

Top

jhoujhou 2023 年 5 月 22 日
You did a great job

page title for home page?

Rod Mitchell 2023 年 4 月 16 日 5 則留言
Hi there just installed your plugin and wonder if someone can help me. I’m running the wp 2021 theme and it won’t let me create a header for my home page. I don’t mean the site title, I mean header for my home page. There’s a box there for it, but it won’t register the title I put in it for some reason. Been told theme doesn’t support that but it’s affecting my SEO, so screming frog spider tells me 🙂

good plugins

Isaac Beneli 2023 年 2 月 17 日
good plugins

Very good

ffghhb 2022 年 11 月 25 日
thanks

Great

robmoerland 2022 年 5 月 11 日
This plugin is simple yet powerfull. All you need.
閱讀全部 19 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Head Meta Data〉的開發相關工作。

參與者
  • Jeff Starr

〈Head Meta Data〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Head Meta Data〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

If you like Head Meta Data, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!

🤖 New Pro version available! Check out Head Meta Pro »

20250327

  • Removes hmd_i18n_init() function
  • Relocates example of custom meta tag
  • Renames “Custom content” to “Custom Tags”
  • Adds function to check if pro version active
  • Adds uninstall option head-meta-data-dismiss-notice
  • Fixes PHP Notice, re: _load_textdomain_just_in_time
  • Sets “Restore Defaults” panel to hidden by default
  • Bumps minimum required WP version
  • Updates plugin settings page
  • Generates new language template
  • Tests on WordPress 6.8

Full changelog @ https://plugin-planet.com/wp/changelog/head-meta-data.txt

中繼資料

  • 版本 20250327
  • 最後更新 4 個月前
  • 啟用安裝數 10,000+
  • WordPress 版本需求 4.7 或更新版本
  • 已測試相容的 WordPress 版本 6.8.2
  • PHP 版本需求 5.6.20 或更新版本
  • 語言

    English (US)、Italian、及 Japanese.

    將這個外掛本地化為你的母語版本

  • 標籤
    authorheadermetametadatapublisher
  • 進階檢視

評分

4.8 星,滿分為 5 星
  • 18 個 5 星使用者評論 5 星 18
  • 0 個 4 星使用者評論 4 星 0
  • 0 個 3 星使用者評論 3 星 0
  • 0 個 2 星使用者評論 2 星 0
  • 1 個 1 星使用者評論 1 星 1

新增使用者評論

查看全部使用者評論

參與者

  • Jeff Starr

技術支援

最近 2 個月解決的問題:

總計 1 個問題,已解決 0 個

檢視技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • Visit our Bluesky account
  • 造訪我們的 Mastodon 帳號
  • Visit our Threads account
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
程式碼,如詩