This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Set HTML lang attribute per post


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


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.


This plugin was made in a jiffy. But by all means do suggest improvements. For instance the plugin obviously lacks testing code.


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

عکس‌های صفحه

  • screenshot-1.png


  1. Upload htmllang.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

سوالات متداول

Wondering about something?

نقد و بررسی‌ها

خواندن تمامی 3 نقد و بررسی‌

توسعه دهندگان و همکاران

“Set HTML lang attribute per post” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Set HTML lang attribute per post” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

گزارش تغییرات


  • Initial publish.