Title: Set HTML lang attribute per post
Author: nilsnh
Published: <strong>7 ژانویه 2015</strong>
Last modified: 11 ژانویه 2015

---

جستجوی افزونه‌ها

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/set-html-lang-attribute-per-post.svg)

# Set HTML lang attribute per post

 توسط [nilsnh](https://profiles.wordpress.org/nilsnh/)

[دانلود](https://downloads.wordpress.org/plugin/set-html-lang-attribute-per-post.0.0.1.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/set-html-lang-attribute-per-post/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/set-html-lang-attribute-per-post/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/set-html-lang-attribute-per-post/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/set-html-lang-attribute-per-post/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/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).

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

## عکس‌های صفحه

[⌊screenshot-1.png⌉⌊screenshot-1.png⌉[

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?

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

![](https://secure.gravatar.com/avatar/8445f5ab1a95036bd05551bb4682b8aeabc3fb9ed00b05a845b23c324c449978?
s=60&d=retro&r=g)

### 󠀁[Not working anymore](https://wordpress.org/support/topic/not-working-anymorw/)󠁿

 [visionrougenet](https://profiles.wordpress.org/visionrougenet/) 16 ژوئن 2018

The idea is great, but not working with latest wp version

![](https://secure.gravatar.com/avatar/f1eeaacaaf87d51949eb241c29298aa40e1145f2f7dcd4e26d652a5bba2fcc6f?
s=60&d=retro&r=g)

### 󠀁[Working on WordPress 4.9.5](https://wordpress.org/support/topic/working-on-wordpress-4-9-5/)󠁿

 [johnww2](https://profiles.wordpress.org/johnww2/) 14 می 2018

Works as described, inserting lang tag in article section, on WordPress 4.9.5.

![](https://secure.gravatar.com/avatar/63b915e16621f89b4de2ff7eca091c58b16bfff33139c3d1ff93f57749d15ec0?
s=60&d=retro&r=g)

### 󠀁[It seems to do the workaround!](https://wordpress.org/support/topic/it-seems-to-do-the-workaround/)󠁿

 [mixali](https://profiles.wordpress.org/mixali/) 9 ژوئن 2017

Clean and simple plugin, should be no risk to use it with any theme. Looking fwd
seeing if it will work for SEO purposes.

 [ خواندن تمامی 3 نقد و بررسی‌ ](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/)

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

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

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

 *   [ nilsnh ](https://profiles.wordpress.org/nilsnh/)

[ترجمه “Set HTML lang attribute per post” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/set-html-lang-attribute-per-post)

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

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/set-html-lang-attribute-per-post/)،
[مخزن SVN](https://plugins.svn.wordpress.org/set-html-lang-attribute-per-post/) 
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/set-html-lang-attribute-per-post/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/set-html-lang-attribute-per-post/)
مشترک شوید.

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

#### 0.0.1

 * Initial publish.

## اطلاعات

 *  نگارش **0.0.1**
 *  آخرین به‌روزرسانی **12 سال پیش**
 *  نصب‌های فعال **100+**
 *  نگارش وردپرس ** 3.0.1 یا بالاتر **
 *  آزمایش‌شده تا **4.1.42**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/set-html-lang-attribute-per-post/)
 * برچسب
 * [html](https://fa.wordpress.org/plugins/tags/html/)[lang](https://fa.wordpress.org/plugins/tags/lang/)
   [language](https://fa.wordpress.org/plugins/tags/language/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/set-html-lang-attribute-per-post/advanced/)

## امتیازها

 4.3 از 5 ستاره.

 *  [  امتیاز 2 5-ستاره     ](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/?filter=4)
 *  [  امتیاز 1 3-ستاره     ](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/?filter=1)

[بررسی شما](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/reviews/)

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

 *   [ nilsnh ](https://profiles.wordpress.org/nilsnh/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/set-html-lang-attribute-per-post/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AX8X2THZR8M5U)