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:
- How to call a plugin function from index.php
- 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
- How to change custom post type pemalink Hierarcy
- Archive – same title for the first two posts
- How to create an archive page (with links) for a date range?
- 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
- 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
- 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
- flush_rewrite_rules() not working with update_option_{$option}
- 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
- Make get_permalink() work outside the Loop using filters
- Permalinks and pagination are not working in WordPress with WP e-Commerce plugin
- Disable Author Archive just for certain roles in bulk
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Why the internal link get converted into a comment?
- How to overwrite the category template in a plugin
- Oops! That page can’t be found
- Error in Fetching Custom Post Type parent Category URL (slug)
- Hidden permalink different from displayed permalink
- the_posts_pagination() not working if I add wp_head() to header.php
- Callback hooked to post_updated firing on new posts as well
- WordPress Frontend Page using Plugin
- Child theme modifications not showing up
- Rewrite/Change custom taxonomy slug
- Create new page in wordpress plugin which doesn’t exist
- one url for all pages
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- Is it possible to have permalinks to sub-domain pages and to root pages within one single WP instance?
- How to update all in-site redirect URLs to destination URLs at once
- Changing author slug for a custom role without using plugin
- Category Arabic Slug shows as symbols in plugin lists
- Custom author page for custom role
- Custom role not listed
- Members-only page, but accessible via sharable link
- 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?
- 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?
- Change post permalink to external URL from custom field
- Category archive in menu
- 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]
- WordPress Plugin and other pages not opening
- 404 Error on a WordPress Website, Error disappears for a while and again appears
- Changing the “OT Process” Plugin’s Default Slug of /process/
- What is the easiest way to create a custom field archive?
- WP_PLUGIN_URL equivalent