Just use flush_rewrite_rules();
Documentation here.
Related Posts:
- WordPress slugs and 404 handling takes preference over folders in site root?
- How to encode author ID in the author permalink
- Don’t change Custom Post Type slug to unique value
- Adding a custom field to a slug
- How to keep the /blog slug even in single post slug
- get post author id outside loop
- Need help with friendly URL’s in WordPress
- Editing the Number at the end of Page URLs / Editing Page Slugs
- WordPress 3.1 removing ‘category’ from the slug
- Why does WordPress 3.0.4 keep deleting the contents of the .htaccess file?
- Add filename to attachment page url
- Remove Author Slug & Replace With Username
- How can I get the page url slug when ‘post_name’ returns an id?
- Change author slug and functionality
- Creating Search Engine Friendly URL’s with Word Press
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- Create a custom php page and load it at a specific slug
- Advanced author permalinks
- WordPress Custom File Permalink
- How can I create a permalink with two categories, with the order based on the parent category?
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Create a url structure for my blogs based on categories and sub-cats
- Woocommerce product permalink not working
- Create page as a file in my theme?
- Get wordpress taxonomy slug name(s) to use as div class
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Add or Create Custom Structure Tags to Permalink
- How to display page ids as page slug names?
- Inline-Table under TwentyTwelve not working
- How do I change my permalink structure to a custom structure on an established blog?
- getting a 404 page for all pages except home. possibly permalinks
- Different profile page by role
- Create Miltiple Category Base
- How to get Previous Visited Page Information
- If Term Name Exists, Append a Unique ID to Slug
- how can custom permalink structure use for specify custom post type
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- How to allow different authors to use same post slug?
- Custom permalink structure for posts in certain categories
- How to add rewrite rule for product compare page?
- How to add a static text at end of a wordpress permalink
- Combine Categories & Custom Taxonomy
- Structure of post types for TV Shows and episodes
- Smarter Document Management links between three WordPress sites sought
- Author permalink
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- permalink of word press in htacess
- Redirect Every Instance of The Author Template Pages to Custom Author Pages
- Add category slug as class attribute in a link array
- For one linked image per post, override that link with a permalink when on the main page
- I need to display post related info
- Show post content in two different places without redirect
- Permalink Listing WordPress
- Redirection after Category Change for Custom Structure
- Essential technical features for high-end WordPress web hosting? [closed]
- Why doesn’t WP_Image_Editor save images using the Filesystem API?
- is_home() and is_single() Not Working as Expected with Custom Post Types?
- Add control in image detail panel
- Is there a way to integrate WordPress within an existing PHP Framework, CMS, and Navigation system?
- No option to add a ‘featured image’ in my wordpress installation
- WordPress in “Couch Mode”?
- Combine multiple words in custom meta search query
- How to run a test WordPressMu to WordPress3 update?
- Importing media medium setting image gallery / image attachments
- Add custom column to Users admin panel with Types user custom fields?
- woocommerce Add custom field set like billing fields
- Adding action to save_post, post needs to be saved twice for function to work
- 1 bit audio player
- Outputting posts from post id´s in variable
- Auto redirect after session expire, but only for one user
- How to get pages id in array in get_pages?
- Access post meta in future_to_publish function
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- How to create a completely private wordpress with multiple membership levels
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- custom meta box for page default template
- How to host 2 subdomains as lookalike destinations under one master domain?
- Pre-populate Slug / Permalink with URL
- “An automated WordPress update has failed to complete – please attempt the update again now”– But there is no .maintenance file
- Modify files without losing customization after updates
- Determine if action was executed in functions
- How to Custom Edit Post Title & Permalink Slug?
- Extending core class in plugin
- Is it possible to make wordpress LMS
- How to add WordPress JS Script Links
- Client viewing before deployment
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Run a welcome tour after multisite creation?
- How to compare number with id of post in certain category
- Need to over ride a !important from the index file
- how to hard link to the posts page?
- Error in establishing a database connection in wordpress?
- Creating a search with tag variable also added for more detailed results
- Show WP content on different PHP Sites
- Template setting is not saving in wordpress
- How wp maps urls into files
- How do I add custom CSS animations for specific Gutenberg blocks?
- Multi color post title by using custom javascript inside the gutenberg editor?
- Add custom styles to the Raft theme