The ID of a post is not meant to be a sequence number in the sense that for post N the following post is N+1. The ID is an auto-incremented field in the posts table, which includes many things that are not published posts, e.g., drafts, pages, attachments. So there is really no way to force WordPress to assign sequential IDs in that field.
There are ways to produce a sequence number and then use it in the permalink structure, but any efficient system will involve storing the IDs in a separate location (table or option) and writing a custom rewrite plugin. That last bit is quite advanced.
It would be an intriguing problem for the experienced hacker to produce a plugin that solves this problem without significant performance degradation.
Related Posts:
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- How to call a plugin function from index.php
- Archive list with only years and months
- Rewriting every url
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- Change post permalink to external URL from custom field
- Prevent page slug from interfering with custom post type archive permalink?
- Passing URL parameters to WordPress pages and pretty url
- Publish Post After Click On A Link
- How to prefix `attachment` permalinks with `attachment`?
- Alter post slug by a filter that is fired just after a post is created
- How to get the custom page get_permalink?
- How to set “with_front’=>false” to a plugin-generated cpt?
- WP get_permalink Return Wrong URL
- How to add nofollow on all external links without plugin?
- Custom url structure for custom template
- How do I customize my WordPress shortlink structure in link-template.php without a plugin?
- Add a Custom Permalink option in the Permalink Admin Screen?
- Social sharing post’s shortlink instead of permalink
- How to get the permalink of a page when loading my plugin
- Mixed unrelated taxonomy in permalink
- Rewrite url without flushing the database?
- How do I add a custom sub menu menu under Woo-commerce marketing?
- Changed permalink structure. Need help with redirecting old posts
- Change permalink structure hidden button edit
- Load custom PHP on a custom URL via a plugin
- How to change custom post type pemalink Hierarcy
- resetting permalinks after changing page names
- Archive – same title for the first two posts
- How to create an archive page (with links) for a date range?
- Plugin appends ugly URL string to index
- How to make a proper custom post type link
- Pagination Broken on Static Pages but Works on Blog Articles
- AddToAny shortcode in the loop
- ‘No Results Found’ on single post for custom post type
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Outbound link autometic converted into linkdirect , and not opening
- Is it possible to use multiple post_name, post_title and post_content?
- Modifying Author Link to add Author Meta in URL
- SEO Friendly URL on dynamic product page produced via shortcode
- Change permalinks of custom post type ‘question’ as post id or any random number once
- Remove /product/ from url. I want only category name then product name
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- Customize permalink wordpress category id
- Reoccurring 404 Errors on all subpages
- Permalinks stopped working after migration with WP all-in-one migration plugin
- How to remove custom post type and add category and post name
- Perform internal redirect in WordPress?
- Using arbitrary paths in page urls
- “Custom Post Type Permalinks” plugin URL strcuture
- Filtering get_permalink in Jetpack / ShareDaddy
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- How to add subcategories to the blogroll?
- plugin links not working [closed]
- Plugin generated taxonomies’ permalinks with custom placeholders
- How to get the permanent link in a plugin?
- Yoast SEO settings unavailable in an archive page from wordpress plugin
- This WordPress plugin isn’t creating links correctly
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- flush_rewrite_rules() not working with update_option_{$option}
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Show icons or badges under title on product archives/category pages
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Disable plugin If slug contains specific word
- How do I create a custom permalink structure for a page template
- I want to filter my products with attributes [closed]
- Archive with months of current year only
- How to embed a new string in url?
- Make get_permalink() work outside the Loop using filters
- Plugin for TinyMCE to create reference to other posts
- Permalinks and pagination are not working in WordPress with WP e-Commerce plugin
- added code to permalink (URL)
- How to setup same post slug for different categories?
- How to add add blank non-editable wp page like default blog for use with plugin
- Is it possible to change plugin’s Admin Panel Url?
- get_permalink is causing a whitescreen
- Share on social media created listing after submission
- Rogue splash page keeps popping up
- Coming soon pages with rest of site in maintenance mode
- add_external_rule – rules deleted when visiting permalinks page
- How to disable wordpress page rewrite rule?
- How to programatically create a simple HTML page using the permalink of a WordPress post?
- How to maintain WordPress permalink structure with custom content with URL parameters?
- Change post permalink to external URL from custom field
- Category archive in menu
- Unwanted Links and Spam WordPress Pages and Posts
- homepage olderposts link showing page not found
- 404 not found problem with URL rewrite custom category
- Adding Category in URL in some post
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- WordPress Plugin and other pages not opening
- 404 Error on a WordPress Website, Error disappears for a while and again appears
- claim a permalink and all sublinks in plugin
- Getting 400 Error in wordpress website
- Changing the “OT Process” Plugin’s Default Slug of /process/
- What is the easiest way to create a custom field archive?
- How to get selected variation from URL?
- WP_PLUGIN_URL equivalent
- Help Needed: Issue with Change Permalink on DirectoryPress Listing Pages