内容をスキップ
  • ログイン
  • 登録
WordPress.org

日本語

  • テーマ
  • プラグイン
  • ニュース
  • サポート
    • ドキュメンテーション
    • フォーラム
  • 概要
  • 参加・貢献
  • このサイトについて
  • WordPress を入手
WordPress を入手

プラグイン

  • お気に入り
  • ベータテスト
  • 開発者
ダウンロード

Head Meta Data

作者: Jeff Starr
  • 詳細
  • レビュー
  • インストール
  • 開発
サポート

説明

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.

基本的な例

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 の例

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.

機能

  • 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 & custom content
  • 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

ショートコード

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

  • [hmd_post_excerpt] — 投稿の抜粋
  • [hmd_post_date] — 投稿日
  • [hmd_post_author] — 投稿者名
  • [hmd_post_title] — 投稿タイトル
  • [hmd_post_cats] — 投稿カテゴリー
  • [hmd_post_tags] — 投稿タグ
  • [hmd_year] — 現在の年
  • [hmd_tab] — タブ/スペースをマークアップへ追加

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!

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.

プライバシー

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.

開発を支援

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 – 超高速 WordPress ファイアウォール
  • Blackhole Pro – Automatically block bad bots
  • Banhammer Pro – Monitor traffic and ban the bad guys
  • GA Google Analytics Pro – Connect WordPress to Google Analytics
  • Simple Ajax Chat Pro – 無制限のチャットルーム
  • USP Pro – 無制限のフロントエンドフォーム

Links, tweets and likes also appreciated. Thanks! 🙂

スクリーンショット

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

インストール

インストール

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

More info on installing WP plugins

ショートコード

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

  • [hmd_post_excerpt] — 投稿の抜粋
  • [hmd_post_date] — 投稿日
  • [hmd_post_author] — 投稿者名
  • [hmd_post_title] — 投稿のタイトル
  • [hmd_post_cats] — 投稿カテゴリー
  • [hmd_post_tags] — 投稿タグ
  • [hmd_year] — 現在の年
  • [hmd_tab] — タブ/スペースをマークアップへ追加

So you can include any of these shortcodes in the “Custom Content” 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] — サイトの説明
  • [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

For example, we could add this meta tag via the “Custom Content” 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!

カスタムメタタグ

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.

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.

アップグレード

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!

アンインストール

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.

FAQ

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

評価

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.

Great plugin to easily add code to the head

azbce 2021年9月23日
I like this plugin. It's great if you don't know your way around your template.

thank you

oceanswardrobe1 2021年7月14日
Works well and am happy

works fine

ak13350 2020年5月2日
Works good, no issues. Easy setup, very useful and helpful functions. you can add any custom code into the head of each web page. Thanks
16件のレビューをすべて表示

貢献者と開発者

Head Meta Data はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者
  • Jeff Starr

“Head Meta Data” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“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!

820230227

  • Improves responsive styles
  • Improves logic when calling get_current_screen()
  • Moves WP Resources panel to its own function
  • Removes SES Pro from WP Resources panel
  • Tests on WordPress 6.1 + 6.2 (beta)
  • Tests on PHP 8.1 and 8.2

20220925

  • Adds custom footer text to plugin settings
  • Improves logic of settings validation
  • Improves plugin documentation
  • Updates translation template
  • Updates “Show Support” panel
  • WordPress 6.1で動作検証済み

20220515

  • WordPress 6.0で動作検証済み

20220113

  • Updates support panel
  • Improves loading of translations
  • Updates some links to external resources
  • Changes minimum required WP version to 4.6
  • WordPress 5.9で動作検証済み

20210713

  • WordPress 5.8で動作検証済み

20210209

  • PHP 7.4と8.0で動作検証済み
  • WordPress 5.7で動作検証済み

20201110

  • Adds custom meta per post/page (more info in docs)
  • Resolves some PHP notices for PHP version 7.4
  • Updates default translation template
  • PHP 7.4と8.0で動作検証済み
  • WordPress 5.6で動作検証済み

20200805

  • Adds shortcode [hmd_post_excerpt] to display post excerpts
  • Adds shortcode [hmd_post_tags] to display tags
  • Adds option for <meta charset="utf-8">
  • Refines plugin setting page styles
  • Refines readme/documentation
  • WordPress 5.5で動作検証済み

20200313

  • WordPress 5.4で動作検証済み

20191027

  • Updates styles for plugin settings page
  • Generates new default translation template
  • WordPress 5.3で動作検証済み

20190902

  • Updates some links to https
  • WordPress 5.3(アルファ版)で動作検証済み

20190428

  • Bumps minimum PHP version to 5.6.20
  • Tweaks plugin settings screen content
  • Updates default translation template
  • WordPress 5.2で動作検証済み

20190306

  • Adds check for admin user for settings shortcut link
  • WordPress 5.1と5.2(アルファ版)で動作検証済み

20190220

  • WordPress 5.1で動作検証済み

20181114

  • Adds option for “robots” meta tag
  • Adds homepage link to Plugins screen
  • Updates default translation template
  • WordPress 5.0で動作検証済み

20180817

  • Adds rel="noopener noreferrer" to all blank-target links
  • Updates GDPR blurb and donate link
  • Tweaks appearance of plugin settings page
  • Fixes “non-object” bug
  • Regenerates default translation template
  • WordPress 4.9と5.0(アルファ版)で追加の動作検証

20180507

  • Adds new shortcodes: [hmd_post_author], [hmd_post_title], [hmd_post_cats], [hmd_year], [hmd_tab] (see plugin documentation for details)
  • Improves settings page UI
  • Updates Show Support panel
  • Generates new translation template
  • Updates plugin image files
  • WordPress 5.0で動作検証済み

20171103

  • Removes extra manage_options check for plugin settings
  • WordPress 4.9で動作検証済み

20171022

  • Adds extra manage_options capability check to modify settings
  • Streamlines Support panel in plugin settings
  • WordPress 4.9で動作検証済み

20170731

  • Updates GPL license blurb
  • Adds GPL license text file
  • WordPress 4.9(アルファ版)で動作検証済み

20170324

  • Refines display of settings page
  • Refines display of settings panels
  • Updates show support panel in plugin settings
  • Changes translation domain in plugin header to head-meta-data
  • Adds [hmd_post_date] shortcode to display latest post date in custom content
  • Replaces global $wp_version with get_bloginfo('version')
  • Generates new default translation template
  • WordPress 4.8で動作検証済み

20161116

  • Updates plugin author URL
  • Updates Twitter URL to https
  • 安定版のタグを trunk から最新バージョンへ変更
  • Refactors add_hmd_links() function
  • Updates URL for rate this plugin links
  • WordPress 4.7(ベータ版)で動作検証済み

20160811

  • Fixed backslash-apostrophe bug via esc_attr()
  • Streamlined and optimized plugin settings page
  • Replaced _e() with esc_html_e() or esc_attr_e()
  • Replaced __() with esc_html__() or esc_attr__()
  • Added plugin icons and larger banner image
  • Improved translation support
  • Deleted unused plugin icon
  • General fine-tuning of code
  • WordPress 4.6で動作検証済み

20160331

  • Replaced icon with retina version
  • Added screenshot to readme/docs
  • Added retina version of banner
  • Added overflow: auto to pre tag
  • Reorganized and refreshed readme.txt
  • WordPress 4.5(ベータ版)で動作検証済み

20151110

  • Updated heading hierarchy in plugin settings
  • Added French translation (Thanks to Patrice Chassaing)
  • Updated translation template file
  • Updated minimum version requirement
  • WordPress 4.4(ベータ版)で動作検証済み

20150808

  • WordPress 4.3で動作検証済み
  • Updated minimum version requirement

20150507

  • WordPress 4.2と4.3(アルファ版)で動作検証済み
  • Changed a few “http” links to “https”

20150315

  • WordPress 最新バージョン(4.1)で動作検証済み
  • Increased minimum version to WP 3.8
  • Added $hmd_wp_vers for version check
  • Streamline/fine-tune plugin code
  • Added Text Domain and Domain Path to file header
  • Added .pot template for localization
  • Removed deprecated screen_icon()

20140923

  • WordPress 最新バージョン(4.0)で動作検証済み
  • Increased minimum WP version requirement to 3.7
  • Added conditional check on min-version function

20140123

  • WordPress 最新バージョン(3.8)で動作検証済み
  • Added trailing slash to load_plugin_textdomain()

20131107

  • Added uninstall.php file
  • Added “rate this plugin” links
  • Added support for i18n

20131104

  • Added line to prevent direct script access
  • Changed default value for copyright meta
  • Improved support for custom content
  • Fixed bug reported here
  • Replaced wp_kses_post with wp_kses
  • Added “href”, “property”, “title”, “rel”, “type”, “charset”, “media”, “rev” to list of allowed attributes
  • Removed closing “?>” tag in head-meta-data.php
  • WordPress 最新バージョン(3.7)で動作検証済み

20130705

  • General code check n clean, plus Overview and Updates admin panels now toggled open by default.

20130103

  • Added margins to submit buttons (required in WP 3.5)

20121102

  • Rebuilt plugin, changed name from “Head MetaData Plus” to “Head Meta Data”.

20060502

  • 最初のリリース。

メタ

  • バージョン: 20230227
  • 最終更新日: 4週間前
  • 有効インストール数: 20,000+
  • WordPress バージョン: 4.6またはそれ以降
  • 検証済み最新バージョン: 6.2
  • PHP バージョン: 5.6.20またはそれ以降
  • 言語:

    English (US)、Japanese.

    プラグインを翻訳

  • タグ:
    headheadermetametadatatags
  • 詳細を表示

評価

すべて表示
  • 5つ星 15
  • 4つ星 0
  • 3つ星 0
  • 2つ星 0
  • 1つ星 1
レビューを申請するにはログインしてください。

貢献者

  • Jeff Starr

サポート

過去2ヶ月以内に解決した問題:

1 / 1

サポートフォーラムを表示

寄付

このプラグインが今後も改善できるよう応援しませんか ?

このプラグインに寄付

  • WordPress とは
  • ニュース
  • ホスティング
  • 寄付
  • Swag
  • ドキュメンテーション
  • 開発者
  • 参加・貢献
  • Learn
  • ショーケース
  • プラグイン
  • テーマ
  • パターン
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • マット・マレンウェッグ
  • プライバシー
  • 公開コード
WordPress.org
WordPress.org

日本語

  • Facebook ページへ
  • Twitter アカウントへ
  • Instagram アカウントへ
  • LinkedIn アカウントへ
Code is Poetry.