Head Meta Data
✨ Add meta tags to your site ✨ Blazing fast performance ✨ Uses only 60KB of code! Head Meta Data (HMD) improves the definition and semantic quality of your website by adding tags to the section of your web pages. Super lightweight, fast, and user-friendly. 🤖 Default Meta Tags Customize the perfect set of meta tags for your site. For example: 🤖 Dynamic Meta Tags Use shortcodes to dynamically output SEO meta tags: [hmd_post_title] | My Awesome Website This outputs dynamic titles and descriptions, useful for SEO. You also can add unique meta tags and markup on specific posts and pages. Check out the Installation tab for more information. ✨ Help bots understand your content better 🤖 Features Simple and easy to use Clean, standards-based code Customize all tags Add your own custom tags Add custom meta tags on any post or page Supports X (Twitter) Cards and Facebook Open Graph tags Supports , , , , and Automatically adds tags to the section of all pages Check out a Live Preview of your meta tags and custom tags Auto-populates tags using your site’s information Use shortcodes to include dynamic information Easily disable any unwanted tags Lightweight, fast, and secure ✨ Check out Head Meta Pro to define tags for each page view 🤖 Shortcodes Shortcodes enable you to include dynamic bits of information in your meta tags. Head Meta Data provides the following shortcodes: [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 So you can display your own set of custom meta tags exactly as desired. Learn more » 🤖 Pro 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 » 🤖 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 – Blazing 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 REST Pro Tools – Awesome tools for managing the WP REST API Simple Ajax Chat Pro – Unlimited chat rooms USP Pro – Unlimited front-end forms Links, tweets and likes also appreciated. Thanks! 🙂
Top keywords
- tags32×5.22%
- meta25×4.08%
- meta tags18×2.94%
- post18×2.94%
- pro13×2.12%
- hmd12×1.96%
- outputs11×1.79%
- wordpress10×1.63%
- custom7×1.14%
- hmd post7×1.14%
- site7×1.14%
- add6×0.98%
REST API – Head Tags
This plugin adds all the tags in the head section of a website to WordPress REST API responses. It is perfect if you are using WordPress for a headless set-up and would like to add the meta tags generated by your WordPress SEO plugin (like Yoast SEO or All-in-One SEO Pack) to the WordPress REST API output. Requirements This package depends on the PHP DOM library. Most PHP environments have it by default so you don’t have to worry about that. In case you get some errors regarding this dependency make sure you have this library installed (you can take a look at this thread in the code repository). Compatibility This plugin is compatible and works out of the box with some of the most popular WordPress SEO plugins. These are the ones that we tested: Yoast SEO – (up to 13.5) All in One SEO Pack – (up to 3.4.2) WP SEO – Are you using a different SEO plugin and want to know if it’s compatible? Feel free to ask in our community forum. If you tested any other plugin, please let us know as well so we can update the list. How to use this plugin Entities with head tags The plugin has been developed to include the head_tags field to the REST API response of most of the WordPress core entities: Posts, pages, attachments and custom post types. Post types: for archive pages. Categories, tags and custom taxonomies. Authors. In a Frontity project If you are using Frontity, you just have to install the @frontity/head-tags package and it will work automatically. In a different project You need to understand better how it works and add the data manually. How to fetch the head_tags field manually You have to get each entity from its respective REST API endpoint. For example: for fetching the posts, you should go to /wp-json/wp/v2/posts&id=123 endpoint; for fetching the categories, you have to go to wp-json/wp/v2/categories&id=123, and for custom post types or custom taxonomies, it would be a different url in each case. In the case of the homepage, it’s less intuitive and you should go to /wp-json/wp/v2/types/post. As previously said, each entity has a different endpoint so if you aren’t familiar with this, you should check out the WordPress REST API reference for more information. Inside each endpoint, it will be a new field named head_tags, which will be an array of objects representing the tags that WordPress would normally include inside the html head element. These objects have the properties tag, attributes and content. For example for these HTML tags: Hello wordl! - My Site " /> This would be the content of the head_tags field: "head_tags": [ { "tag": "title", "content": "Hello world! - My Site" }, { "tag": "meta", "attributes": { "name": "robots", "content": "max-snippet:-1, max-image-preview:large, max-video-preview:-1" } }, { "tag": "link", "attributes": { "rel": "canonical", "href": " " } } ] Settings The settings of this plugin are really simple. Purge cache In order to not affect the performance of your site, the head_tags field is cached for all your responses. Each time you update a post/page/cpt or a taxonomy, the cache for that entity will be purged automatically. In case you make global changes (i.e. your permalinks or your global Yoast settings) use the Purge button to clean the whole cache. Enable output By default, the head_tags field is included in the common endpoint of each entity. You can configure it so it doesn’t appear by default and to be shown when you include the head_tags=true query. For example, with the output disabled, https://test.frontity.org/wp-json/wp/v2/posts won’t show the head_tags field unless you have the query ?head_tags=true at the end. Skip cache In case you want to skip the cache, you can do so by adding to the query the parameter skip_cache. There are some cache plugins for the REST API which also use the same parameter. In case you want to ignore the cache for the REST API call but not for the head tags, you can use skip_cache&head_tags_skip_cache=false. Problems and Questions If you have any trouble with the REST API – Head Tags, you can check out our docs or join our community forum and let us know. We’ll be happy to help! Bug reports for REST API – Head Tags plugin are welcomed in our repository on GitHub. Before opening an issue, please be sure to review the contributing guidelines. More Information About Frontity Framework Guide on SEO for Headless WordPress Themes Follow Frontity on Twitter and GitHub Get help on the Frontity Community Forum