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
- How to get a custom taxonomy slug in body classes
- How do I get the URL section to show use a different domain in the WordPress Admin?
- Showing different pages depending on a cookie value
- How to request container_class from wp_nav_menu
- How to add span on WordPress Title for first and third word
- Hide content and functions from specific user roles
- Custom Content Page
- Media Upload not working after hiding some elements from functions.php
- Centering one product on a single page [closed]
- Add Member’s birthdate from Backend and shows it on frontside [closed]
- Remove link from page title
- Menu not appearing in custom theme
- Custom Post Types database persistance. Why not?
- Many Rewrite Parameters/Rules
- Adding other links on header than LinkedIn, Facebook, Youtube etc
- Pagination with custom field
- How can i display custom menu in sidebar?
- Custom Post Types and Removing Slugs – should we do it?
- Custom select query two tables by a meta key
- How to have multiple WordPress Menus
- Can readers download zip files from WordPress sites?
- I want to filter my products with attributes [closed]
- Make tag archive display post are ordered by post format
- Create a custom admin panel
- How to customize a site hosted on wordpress.com locally [closed]
- Help customising admin bar, removing buddypress links from dropdown
- how to add wp-user fields to front-end form
- Let author add field to metabox by pressing a button
- Show custom field value as a link
- How to make the Pages in WordPress Customized?
- Custom “wp_login.php?action=lostpassword” and reset password
- Dynamic Control in customiser
- How to auto add nofollow to links in custom field?
- Custom theme – how to link the image without posting it
- How to load a mycred hook from a plugin?
- toggle Multiple Loop with tittle
- Create a Page template selector page
- How to add active state to the navigation links?
- How to assign a custom post title to be the post ID?
- Replace a ‘Title’ tag with a Custom Field
- Creating custom page template
- failing to display a custom font [closed]
- WP function duplicating body content
- Which delete query is better with prepare or delete
- Edit specific text on a static page