As of April 2026, Set HTML lang attribute per post is a WordPress html plugin with 100 active installations and a 4.3/5 rating from 3 reviews. It has been downloaded 2.1K+ times in total. Requires WordPress 3.0.1+ and PHP false+. Available on WordPress.org since 2015. Last updated 11 years ago — may have compatibility concerns. Top alternative: Shortcoder — Create Shortcodes for….
This wordpress plugin adds a meta box for specifying html lang=”” language per post.
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).
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 lang…
| WordPress | 3.0.1+ requiredTested up to 4.1.42 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.