Recently, users always ask why there are only dozens of articles on the website, but the article ID is listed in thousands of numbers? Generally, people with this problem use this fixed link form:
/%post_id%.html
Maybe at the beginning of the design of WordPress, this problem was not considered. Image attachments, auto saving, drafts, categories, labels, etc. will occupy IDs, and after deleting image attachments, The ID will not be reused. The serial number is getting larger and larger, resulting in discontinuous article IDs.
There are many consecutive tutorials of various WordPress article IDs on the Internet, and the classic one is this one: WordPress perfectly solves the problem of discontinuous article IDs But there is no way to solve it perfectly.
WordPress article ID continuous
One simple way to achieve continuous article IDs is to use fixed links:
/%postname%.html
When editing an article, change the permanent link below the title to a number, as shown in the figure:
Although the ID continuity cannot be fully guaranteed, at least the ID number in the link will not be too outrageous. In addition, it is only suitable for new stations, because it is a bit unrealistic to manually change the previous article.
Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!