Adds a custom set of <meta> tags to the <head> section of all posts & pages.
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
<meta>
tags<meta>
tags<head>
section of all pagesPro version coming soon! 🙂
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 markupSo 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.
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:
And/or purchase one of my premium WordPress plugins:
Links, tweets and likes also appreciated. Thanks! 🙂
Installation
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 markupSo 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]
— 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 tagsFor 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!
Custom meta tags
Using this method, you can add custom meta tags to the <head> section of any post or page. Follow these steps:
head-meta-data
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.
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!
20240627
dismiss_notice_link
hmd-logo.jpg
to /images/
directoryFull changelog @ https://plugin-planet.com/wp/changelog/head-meta-data.txt