Home  >  Article  >  CMS Tutorial  >  Regarding the continuous issue of WordPress post IDs

Regarding the continuous issue of WordPress post IDs

藏色散人
藏色散人forward
2020-07-01 11:49:483770browse

The following column WordPress Tips will introduce to you the issue of WordPress article ID continuity. I hope it will be helpful to friends in need!

Regarding the continuous issue of WordPress post IDs

Recently, users always ask, why are the article IDs ranked in the thousands when there are only dozens of articles on the website? Generally, people who have this problem use this fixed link form:

/%post_id%.html

MaybeWordPressAt the beginning of the design, this problem was not considered, image attachments, automatic saving , drafts, etc. will occupy the ID, resulting in discontinuous article IDs. There are many tutorials on the Internet about continuous WordPress article IDs. The more classic one is this one: WordPress perfectly solves the problem of discontinuous article IDs, but there is no truly perfect solution.

One of the simpler ways to achieve continuous article IDs is to use the fixed link form:

/%postname%.html

When editing an article, change the permanent link under the title to a number, as shown in the figure:

Regarding the continuous issue of WordPress post IDs

Although it is not completely guaranteed that the IDs will be continuous, at least the ID numbers will not be too outrageous. In addition, it is only suitable for new sites, because it is a bit unrealistic to manually change the previous articles.

The above is the detailed content of Regarding the continuous issue of WordPress post IDs. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:zmingcx.com. If there is any infringement, please contact admin@php.cn delete