이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Allow Numeric Slugs

설명

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.

설치

  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.

후기

2023년 7월 25일
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.
2022년 4월 27일
Works perfect, THX a lot for this.
모든 8 평가 읽기

기여자 & 개발자

“Allow Numeric Slugs”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Allow Numeric Slugs”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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.