WordPress article ID continuous

WordPress eight 1.8K Reading mode

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 - picture 1

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:

 WordPress article ID continuous - picture 2

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!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments eight    Visitors eight
    •  peter
      peter one

      Ha ha, this is the simplest way

      •  Notes of Daddy Building Website
        Notes of Daddy Building Website four

        I guess so.

        •  Free inclusion website
          Free inclusion website four

          It seems that it can only be done manually

          •  Meet Taierzhuang
            Meet Taierzhuang five

            Pictures and drafts all take ID, which is not realistic in a row. It used to be tangled, but now it doesn't matter :arrow:

            •  Go to complain
              Go to complain zero

              How did Baidu solve the problem just now? It was popularized by you. Now don't bother. If it doesn't solve the problem, let it go

              •  scarecrow
                scarecrow zero

                I'm bored, too, ID difference distance spectrum, but since there is no way to solve it, it can only be done manually, let him go

                •  Bookmark Web
                  Bookmark Web one

                  Mass production articles suffer

                 anonymous

                Comment

                Anonymous netizens
                 :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

                Drag the slider to complete validation