Head Meta Data - Plugins

Installation

🤖 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 provides the following shortcodes:

Single post views [hmd_post_excerpt] Outputs post excerpt [hmd_post_date] Outputs post date [hmd_post_author] Outputs post author [hmd_post_title] Outputs post title [hmd_post_cats] Outputs post categories [hmd_post_tags] Outputs post tags [hmd_site_tagline] Outputs site tagline [hmd_site_title] Outputs site title [hmd_year] Outputs current year [hmd_tab] Outputs tab space to tag markup

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-single page views, like the homepage, archives, and search results, the shortcodes display general information:

Non-single views [hmd_post_excerpt] Outputs site description [hmd_post_date] Outputs date of latest post [hmd_post_author] Outputs site name [hmd_post_title] Outputs site description [hmd_post_cats] Outputs all view categories [hmd_post_tags] Outputs all view tags [hmd_site_tagline] Outputs site tagline [hmd_site_title] Outputs site title [hmd_year] Outputs current year [hmd_tab] Outputs tab space to tag markup

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

You can add custom tags via the “Custom Tags” setting, for example:

<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 using shortcodes to output meta tags dynamically:

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

That will output dynamic titles and descriptions according to the current post or page view. Very useful for SEO and helping bots to understand your content better.

✨ Feedback and ideas welcome! Reach us anytime via our contact form »

🤖 Custom Meta Tags

To add custom meta tags to the <head> section of any specific post or page:

  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 desired tag/markup
  6. Save changes and done.

You can add as many custom meta tags as desired, no limits.

For example, we could add the following custom <link> tag to any post:

<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.

You can also use shortcodes in custom meta tags, for example:

<meta name="description" content="[hmd_post_excerpt]">

That will output the post excerpt on single post views, and the site description on archive and home views.

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

<meta name="description" content="[hmd_post_excerpt]">

Useful for indenting code to align with other meta tags 😉

Tip: By default, any custom tags are displayed after the default meta tags.

Tip: To disable all of 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.

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

🤖 Upgrades

Visit the WordPress Plugins screen, locate the plugin, and click “Update” 🙂

🤖 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

This plugin cleans up after itself. All plugin settings will be removed from the WordPress database when the plugin is deleted via the WP Plugins screen. Any custom fields will NOT be removed.

Tag » Add Data To Head Section Wordpress