To avoid this from happening simply add flush_rewrite_rules( false );
after your register_post_type function.
you can read about it more here
http://en.bainternet.info/2011/custom-post-type-getting-404-on-permalinks
Related Posts:
- Custom permalink structure only for default posts
- Custom post type single (permalink) throws a 404 error
- Move first half of posts to one parent page, second half to the other page
- How could I change my Permalink from blog to custom structure? [closed]
- register_post_type permalink
- Post titles and thumbnails as links to custom post types?
- Changing permalink of WordPress
- Custom Post Types and Broken Permalinks
- Permalink base only for posts
- Append a random string to a post permalink
- Default post type doesn’t display in url
- Changes done in admin panel are taking time to reflect in the REST api responses
- Add a checkbox to post screen that adds a class to the title
- How to automatically generate a unique random slug
- Change permalinks for post type ‘post’ only
- Attach pdf file to custom post type
- Add custom field to category of custom post type
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Random post permalink
- Add custom fields to post programmatically
- user contributed content as custom post types
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Link post permalinks to subdirectory /post
- Filter Posts By Tag
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Dynamically generate child-URLs for posts or custom posts
- Dynamic carousel on individual posts
- Adding parent pages to posts
- Set terms in a custom post
- I want to display custom text widgets for each post in the sidebar?
- Display posts styled exactly like default posts
- Custom loop pagination links not working
- Enable Comments Box On Custom Post Type
- How can i limit the number of posts created per category?
- Responsive images with custom image size
- Trying to use AngularJS with WordPress without any API
- Take a received feedback item, turn it into a post
- Getting value from get_post_custom
- Any way for get_next_post() to use the actual post order instead of publish order?
- how do i add posts-page slug before posts slug in permalinks
- Admin – create custom post status and display above table
- the_permalink() not working in a root installation
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Customize rel=canonical tag for single blog post
- disable Tab post on nav-menus page (Admin)
- Second get_permalink inside loop points to wrong URL
- Best Way to Add UnEditable HTML to Posts
- How safe is it to delete old posts edits to save database space?
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Is codex right on deleting post?
- Custom Permalink Structure for Pages & Posts
- How to get different Related Posts
- Post is blank when I click on the link
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- Inserting an example of the last 3 post on to the homepage
- Post/page title to permalink transformation – what is behind the scenes?
- Can WordPress handle following functionalities?
- Get a term each custom post type
- Can Permalink structure of %postname%/%post_id% improve performance
- Getting post and attached image from subdomain
- Trying to exclude custom posts based on date, while sorting by custom field
- Help on conditional statement to accompany wp_insert_post function please?
- Remove subcategory slug from url
- Can I show category name in url for only one of my categories?
- Please help a newbie with blog page issue?
- Alt text attributes not showing over portfolio images
- Adding an option to post editor to show a site disclaimer or message
- Search results for ACF data
- Private post caught in endless redirect loop
- Redirect to custom post if custom archive page has just one result?
- How to add a ‘News’ section to specific posts in WordPress
- Add a url parameter to the current post and read it in a shortcode
- Multiple posts in one page
- How can I set the permalink of an article / page equal to the permalink of an existing article / page?
- delete post hook not being fired when deling in wordpress dashboard admin
- WordPress Delete Users from backend doesn’t work
- Is it possible to make a custom post that adds multiple pages?
- Custom post styling per category?
- How to add category base prefix to wordpress permalink
- Custom post type – Loop out in random order but same 15 to appear first… still random
- Change the URL of posts by category
- Hook To Get All Posts Deleted
- Meta boxes not saving
- Custom URL Structure for posts with subcategories
- Help with a function that will place a map pin for all posts
- How to show the posts list into a static page? Problems to use the loop into a static page
- Allow users to create their own page/s
- 404 for some custom taxonomy not ALL taxonomy
- Modifying the permalink href for posts with jquery
- Add default content to post (for specific category)
- Setting default category for display
- WordPress strips some attributes for author posts
- Display one post randomly from category on home page
- Deleting first four characters from all Post Titles
- Deleling wordpress posts permanently still have IDs
- Post’s arent displaying
- Can I get custom post items in select box (dropdown)
- How to have 2 posting pages on a blog
- Dynamic Menu Item
- I have a website issue I am trying to resolve