I found a solution here:
http://gabrieleromanato.name/wordpress-fix-the-404-error-on-custom-post-types/
Here’s what you need to do to get it to work (quoted from site above):
- Go to Settings → Permalinks and change your current structure to:
/%category%/%postname% - Save changes.
- Restore your original permalink settings. Save changes.
Related Posts:
- adding custom post type “name” to single template
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- hide specific div on single.php [closed]
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- How to integrate single and archive templates for custom post type in any WordPress theme
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- ACF for custom post type archive pages: which hook to use?
- Use the custom post type archive for taxonomies?
- How do I find a way to create a global single.php for a custom post type?
- How to use single.php for creating, reading and editing Custom Posts with ACF
- Custom Post type date archive for custom taxonomy
- Show categories of custom post type and not all posts
- Can’t access private custom posttype single- or archives-page
- How to show custom field on specific custom post type posts only when filled
- CPT Archive pre_get_posts not working?
- Removed custom post type archive page shows blog page
- Custom Post Type Archive template not being called
- Custom Post Type with Configurable Sidebar via ACF
- Query Posts that have Custom Taxonomy
- Plain links in single-class.php and archive-class.php not working
- trying to show single post but displays all post on a custom post type
- Custom Post Type Custom Archive Page Not Working
- Getting custom taxonomy posts on archive page
- Custom Post Type Specific Post Template
- add_action ‘init’ from inside a class for custom post types
- Archive page for custom post type and custom taxonomy
- Custom post type archive – error in nav-menu-template.php
- Order Custom Post Type Archive by multiple values in functions.php
- Custom post type category permalinks and archive pages
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- CPT archive page – show one post from each taxonomy term
- Get single posts archive information
- How to have multiple archive pages?
- Displaying custom taxonomy menu in custom post type archive
- Create a Custom Path to Archive
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Function to allow single post template based on custom taxonomy?
- Specifying a template for custom post type pages
- WordPress sitemap with Custom Post Types
- Pages not appearing?
- Conflict in function to allow single post template based on category
- Is possible register two archive pages for single custom post type?
- WordPress giving me the index
- CPT archive with WP native/core tax/categories
- How to set a ‘page’ as parent of a custom post type?
- Give active class to current page on a while loop WP query for custom post types listing
- Display All Courses in Course Archive Page
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Invalid content when I try to import custom post type from the old template wordpress
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- 2 Custom Post Types In 1 Archive Page?
- Custom post type archive URLs with a single taxonomy
- Loop all post on single.php
- Different number posts per page based on custom post type term id
- Does this archive template part look like its making too many calls to the db?
- How to add specific terms in a custom post type?
- How to change URL for custom post type archive?
- Finding the CPT archive template source
- Displaying all posts by category and showing content on click
- Custom post type single page 404
- Custom post type author issues
- Custom Post Type / Taxonomy not displaying archive
- custom post type – project link output via single-portfolio.php
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- pagination problem listing custom post types of taxonomy in wordpress
- Custom Post type page content (archive page)
- Posts per Page on custom Taxonomy Template
- Group custom post type posts by month
- ACF Pro Accessing fields on a Custom Post Type
- Static Front Page not working for custom theme
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- get_the_terms child terms for current post/custom post only
- Shortcode and get_template_part
- Do not show child pages within a file page
- Tell wordpress to show a single page instead of an archive page
- Display Custom Post Type Archive content with Shortcode
- Permalink for custom post type pages not working
- Custom Post Type archive page listing a 404 or single post
- Set archive of custom post type like ‘posts’ page in reading settings is set
- Why custom post redirecting to index page?
- How to make “single post” permalink maintain it’s sub-page structure
- Building Link List for Custom Tax
- Custom taxonomy with custom post type archive page
- Assign for all post of a post type a specific single-post template
- Custom post pagination not working
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Unsure what page hierarchy to use with CPT UI to show on front end
- custom post type single page
- custom post type single post preview for pending status
- Only show categories that have posts within custom post type
- get_permalink() of page the enclosing page not posts
- get first limited words from a custom post in the archive page
- Meta_query by date for Events archive
- How to manage a custom post type archive as a page?
- How to manage a custom post type archive as a page?
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Custom post type post_type_link gives “page not found” on any other custom post type