Title: Allow Numeric Slugs
Author: Automattic
Published: <strong>26 Tháng 7, 2008</strong>
Last modified: 19 Tháng 12, 2015

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/allow-numeric-stubs.svg)

# Allow Numeric Slugs

 Bởi [Automattic](https://profiles.wordpress.org/automattic/)

[Tải về](https://downloads.wordpress.org/plugin/allow-numeric-stubs.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/allow-numeric-stubs/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/allow-numeric-stubs/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/allow-numeric-stubs/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/allow-numeric-stubs/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/allow-numeric-stubs/)

## Mô tả

Normally it is not possible to have a page slug (the page’s name in the URL) that
is a number. For example this will not work: `yoursite.com/about/2/`. That URL conflicts
with paged content feature where you can posts and pages with multiple pages of 
content by adding `<!--nextpage-->` within your content.

This plugin allows you to have pages with numbers as slugs by giving up the ability
to have paged content pages which isn’t a big deal as most people don’t use paged
content pages anyway.

Code contributions and bug reports are welcome via [this plugin’s GitHub repository](https://github.com/Viper007Bond/allow-numeric-stubs).

## Cài đặt

 1. Go to your admin area and select Plugins  Add New from the menu.
 2. Search for “Allow Numeric Slugs”.
 3. Click install.
 4. Click activate.

## Đánh giá

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

### 󠀁[Works instantly without any configuration needed](https://wordpress.org/support/topic/works-instantly-without-any-configuration-needed/)󠁿

 [matthewdhenderson](https://profiles.wordpress.org/matthewdhenderson/) 25 Tháng
7, 2023

You can’t have a post with a numeric slug like “2020.” Wordpress will automatically
add a “-2” to the end of it. This plugin solves the problem instantly.This developer
passed on in 2019. I’m praying for his soul and the comfort of his family.

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

### 󠀁[Bada55!](https://wordpress.org/support/topic/bada55/)󠁿

 [ps3hero](https://profiles.wordpress.org/ps3hero/) 27 Tháng 4, 2022

Works perfect, THX a lot for this.

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

### 󠀁[Works with 5.2.2](https://wordpress.org/support/topic/works-with-5-2-2/)󠁿

 [Evan Norton](https://profiles.wordpress.org/evannorton/) 31 Tháng 7, 2019

SSIA

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

### 󠀁[Works with WordPress 4.9.6](https://wordpress.org/support/topic/works-with-wordpress-4-9-6/)󠁿

 [xammm](https://profiles.wordpress.org/xammm/) 18 Tháng 6, 2018

FYI: Works with Wordpress 4.9.6

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

### 󠀁[Beautiful plugin.](https://wordpress.org/support/topic/beautiful-plugin-47/)󠁿

 [nabillionaire](https://profiles.wordpress.org/nabillionaire/) 12 Tháng 6, 2017

Works just as advertised. Love it! Thanks a lot.

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

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-821/)󠁿

 [Dima Stefantsov](https://profiles.wordpress.org/dima-stefantsov/) 9 Tháng 1, 2017

Your code solved my issue. Thanks!

 [ Đọc tất cả 8 đánh giá ](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/)

## Người đóng góp & Lập trình viên

“Allow Numeric Slugs” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Alex Mills ](https://profiles.wordpress.org/viper007bond/)

[Dịch “Allow Numeric Slugs” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/allow-numeric-stubs)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/allow-numeric-stubs/), check
out [SVN repository](https://plugins.svn.wordpress.org/allow-numeric-stubs/), hoặc
theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/allow-numeric-stubs/)
qua [RSS](https://plugins.trac.wordpress.org/log/allow-numeric-stubs/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### Version 3.0.0

 * Ditch all of the old fragile hackery of this plugin in favor of just hooking 
   into the WordPress function that ensures that slugs are unique. It’s what was
   adding the `-2` suffix in the first place.

#### Version 2.2.0

 * Update for WordPress 4.4’s rewrite rules.
 * PHP 7 compatibility by renaming class constructor. Also drops unneeded references.

#### Version 2.1.0

 * Update for WordPress 3.3’s rewrite rules.

#### Version 2.0.1

 * Re-add the `save_post` filter after fixing the slug incase multiple posts are
   updated in one pageload.

#### Version 2.0.0

 * Recoded for WordPress 3.0+. WordPress now won’t let you manually enter a numeric
   slug — it will prefix “-2” onto the end of it so that the page is viewable. This
   new plugin version works around it.

#### Version 1.0.0

 * Initial release.

## Meta

 *  Phiên bản **3.0.0**
 *  Cập nhật lần cuối **10 năm trước**
 *  Số lượt cài đặt **900+**
 *  Phiên bản WordPress ** 3.3 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.4.34**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/allow-numeric-stubs/)
 * Thẻ
 * [number](https://vi.wordpress.org/plugins/tags/number/)[numeric](https://vi.wordpress.org/plugins/tags/numeric/)
   [page](https://vi.wordpress.org/plugins/tags/page/)[pages](https://vi.wordpress.org/plugins/tags/pages/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/allow-numeric-stubs/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/allow-numeric-stubs/reviews/)

## Những người đóng góp

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Alex Mills ](https://profiles.wordpress.org/viper007bond/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/allow-numeric-stubs/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](http://www.viper007bond.com/donate/)