Set HTML lang attribute per post
This wordpress plugin adds a meta box for specifying html lang=”” language per post.
Consider an alternative
Set HTML lang attribute per post shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 4.3/5 and was last updated 12 years ago, and scores 30/100 on our health check.
- Small user base (100+ active installs)
- Very few reviews so far
- No update in 11 years
- Only tested up to WordPress 4.1 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Set HTML lang attribute per… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| html | >100 |
| lang | >100 |
| language | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4.3 from 3 reviews
About Set HTML lang attribute per post
From the official readme · v0.0.1Description
This wordpress plugin adds a meta box for specifying html lang=”” language per post.
The problem this plugin solves
WordPress allows us to specify site-wide language defaults like so:
<meta http-equiv="content-language" content="es">
The problem comes about if you have blog posts in various languages. Personally I write posts in either English or Norwegian. And since English is set as the site-wide language posts that are in Norwegian end up looking kinda weird due to weirdly placed - (hyphenations).
Solution
The solution is to add more specific html lang attributes when needed.
<article id="" class="" lang="vi">
For example this specifies that the post is in Vietnamese. This plugin enables a meta box when editing posts where you may specify the post’s language.
Contributing
This plugin was made in a jiffy. But by all means do suggest improvements. For instance the plugin obviously lacks testing code.
Licensing
Copyright 2014 Nils Norman Haukås
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Installation
- Upload
htmllang.phpto the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Set HTML lang attribute per p… alternatives
All html plugins →FAQ
Set HTML lang attribute per post: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Set HTML lang attribute per post free?
Yes. Set HTML lang attribute per post is free to download and use from the official WordPress.org plugin directory.
Is Set HTML lang attribute per post safe to use in 2026?
Set HTML lang attribute per post shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 4.3/5 and was last updated 12 years ago, and scores 30/100 on our health check.
How many websites use Set HTML lang attribute per post?
Set HTML lang attribute per post is active on 100+ WordPress websites and has been downloaded 2,586 times since it launched in January 2015. It was downloaded 137 times in the last 30 days.
Does Set HTML lang attribute per post work with WordPress 7.1?
Set HTML lang attribute per post is officially tested up to WordPress 4.1.42, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Set HTML lang attribute per post last updated?
The latest version, 0.0.1, was released on January 11, 2015 (12 years ago).
Who makes Set HTML lang attribute per post?
Set HTML lang attribute per post is developed and maintained by nilsnh.
What are the best alternatives to Set HTML lang attribute per post?
The most popular alternatives to Set HTML lang attribute per post are Shortcoder (100K+ installs), Mammoth .docx converter (20K+ installs) and Code Embed (10K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card

