You need to flush and regenerate your permalinks everytime you modify/add/remove custom post types or taxonomies.
Going to the permalinks page and saving should be enough
( Also your custom post type code should be in a plugin, not the theme, else the user is stuck using that theme forever )
Related Posts:
- why post_class() function apply css classes to all other files?
- How to completely disable a taxonomy archive on the frontend?
- Change slug of registered custom post type in child theme
- Why is get_post_format() for “Standard” returns empty
- Password-protect a custom rss feed
- Add pre-existing meta box to new custom post type
- White screen error for a custom theme
- How to override parent theme function through the child theme [closed]
- Single Page WordPress CSS and JS links
- How to remove thumbnail sizes for specific post type on a child theme?
- Change labels of custom post type via child theme
- How to use custom fields to enable sticky posts on custom post types?
- Hide Meta Boxes for Non-Admins
- I am trying to output portfolio items with a picture. This code doesn’t seem to be working. What am I doing wrong?
- Child Theme for Mobile Browsers
- Create a post in custom post type using field in registration form after users submit form
- Pre_get_posts filter overwrites all search functionality
- Is it possible to place custom post type files inside a folder in theme directory?
- Custom template with CPT doesn’t display on frontend
- Create a wordpress test-system as a clone from productive system
- Plugin: register custom post types, child ready and performance best practices
- making available just some parts of theme option
- Get term name and term parent into custom post type permalink
- Rewrite post type slug only for child theme
- How do I amend the have_posts function to include custom posts?
- Don’t know how to show custom taxonomies from a custom post_type
- What is the best practice for displaying my plugin content in themes?
- Migrating a taxonomy’s tags to the native category
- Adding custom image sizes and post types to a plugin or to a theme?
- Want to be able to sign up subscribers as authors
- How do I set a custom page template for a custom post type?
- Unable to set featured image
- Running a song lyrics site on WordPress
- Using page slug in wp_query
- Specify a particular page to list all custom types
- uploading problem of wordpress theme
- How to have permalink like domain.com/term/postname?
- Page Template Dropdown For Custom Post Types
- Custom post types problem
- Custom shortcode works in Elementor editor but not on frontend
- Template Hierarchy for custom post type pages
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Child theme blocks post from publishing [closed]
- Custom post type is using the index.php template
- Create a simple Testimonial page
- One Site. One Theme. Multiple Stylesheets without plugins?
- Changing CPT slug and taxonomy already registered in parent theme
- Custom Post Type – Portfolio no longer works
- Methods for development wordpress themes [closed]
- Render a Post or Page using the correct file
- Can I assign a theme to a custom post type?
- Overriding Plugin Function in Child Theme
- Removed custom post type archive page shows blog page
- What happens to my older posts if I switch to a child theme?
- How do I add new post formats to twenty fourteen theme?
- How to create a archive template for custom post type [duplicate]
- Extend Custom Post Type
- Insert custom fields to a custom post type
- Custom Post Type – Main page for certain posts
- display two images in theme header.php file
- Invalid content when I try to import custom post type from the old template wordpress
- Get only parent post in archive post
- Query when is one or several values
- In child theme, add CPT to custom taxonomy registered in parent theme
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- How to use POST method using custom wordpress button?
- I can not call the categories of custom post type
- Change Background Color For CPT Template
- WordPress add taxonomies/terms list as a menu in archive page
- Adding CPT changes entire layout of my site except for the archive of that CPT
- custom post type does not working when adding in child theme function
- Child Theme problems
- getting a blank login page :( any way I can fix this without having to do a clean install?
- How to get main div html to print a list of posts inside?
- erase post excerpt limitation [×]
- How to get $post object available inside functions.php to localize script?
- Query custom post type and showing its content
- Cannot modify a registered custom post type rewrite slug
- Custom Post Types and Child Themes!
- Having some trouble properly displaying Custom Post Types in templates
- How to add a custom post type in child theme? (WordPress > 3.0)
- Problems with a custom meta_box
- Create custom post order (with custom post type meta)
- Query by post type or category
- Change position of Post Formats box?
- Test if a Category contains certain Custom Post Types
- How to manage wordpress knowledge base/wiki/posts collections
- How to get ‘Products’ on home page?
- How can I show template dropdown in custom post type?
- how to display custom taxonomies in front page
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- How can I produce multiple webpages with a different output based on one entry/Page/custom Page?
- Structuring a product catalogue in WordPress [closed]
- Custom post type with file upload – need to “set as field” instead of “send to editor”
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- How to auto increment post title & post slug field?
- Setting proper query for multiple custom admin filters
- Where is get_post_meta value located?
- Two blogs on same WP website