You may have to flush the permalink structure. You can either visit the settings->permalinks page or use flush_rewrite_rules() method.
Related Posts:
- Is there a action hook for the “Empty Trash” button?
- Remove Categories / Tags From Admin Menu
- How to display by default only published posts/pages in the admin area?
- Find out who deleted a page or post?
- Post/Page Preview Template
- Custom Post Types, slug, archive and SEO plugins
- Setting Custom Sort Order of Posts within a Category
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- Where does WordPress store the users customization in the theme
- Add a checkbox to post screen that adds a class to the title
- Using single.php from plugin folder instead of default template folder
- using wp_update_post on save_post
- Custom permalink structure only for default posts
- Replace image attributes for lazyload plugin (data-src)
- Exclude drafts in all() view of edit.php
- How to Group Posts by the First Letter or Number?
- delete post also attachments
- WordPress plugin to publish to multiple remote WordPress blogs
- Is this the best (and only) option to style CSS for a given post type?
- Sort post by attributes ‘order’
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- Attach pdf file to custom post type
- How to display comments and comment form on custom post type?
- How to disable drafts?
- How to change the layout and styling of posts according to their category in WordPress?
- How do I create a featured post within a custom post type?
- how to enable different number of revisions for different blogs when using WPMU?
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- Custom Post Type Pagination Doesn’t Work in WordPress 3.4
- Static posts page with home.php
- Add default content to post (for specific category)
- Unattaching images from a post
- Pagination not working on Custom Page Template
- How to wrap every image in a post with a div?
- Post from front-end only by logged in users, form posts as “posted by:
- Delete Post Link to delete post, its meta and attachments
- Navigation link to specific user page
- Show One Category on Post
- WordPress Delete hook with wp_delete_post function?
- Custom post type single (permalink) throws a 404 error
- Order post by year DESC and month ASC
- How to edit wordpress RSS feed to show post title only
- Add custom field to category of custom post type
- Display custom post types by date field
- How to hook a function only when I need to delete permanently a post?
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- Do I use custom post type or something else?
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- display order of connections
- Delete Post From Front-End and attachment permanently
- Add custom fields to post programmatically
- same template for multiple custom post type single
- if custom post type exist
- How to place HTML below the title of the (custom) post overview
- How to get a nofication when post submitted
- user contributed content as custom post types
- Custom post type permalinks breaking due to 3.1 bug fix
- Remove custom posts that match taxonomy value
- Using Custom Posts with Metaboxes and Drop-downs
- Custom Theme Want To Remove One Category From All Displays
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- adding custom meta as well as looping through posts
- Display ONLY Latest Post From Several Categories
- get post custom value
- WordPress strips some attributes for author posts
- First Custom Post Custom Fields Empty After New Custom Post
- Automatically delete default posts and pages on theme install?
- Best way to enable sorting by 3 criteria on a page of listings
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- How to Do Custom Fields to Output a Definition List
- Getting 404 when using rewrite rule for posts
- Display one post randomly from category on home page
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- How to have more post in a page than in your home page
- Deleting first four characters from all Post Titles
- Deleling wordpress posts permanently still have IDs
- How remove “recent comments” title without modifying code? [closed]
- custom post type single page template not working
- Taxonomy Category category.php not working
- Post’s arent displaying
- Display post structure in function
- Can I get custom post items in select box (dropdown)
- Only show posts belonging to multiple cateogries at same time
- How to have 2 posting pages on a blog
- How to redirect image attachment to its original post
- Default post type doesn’t display in url
- How edit footer copyright info? [closed]
- Dynamic Menu Item
- How do I get content of custom post type through post ID
- Changes done in admin panel are taking time to reflect in the REST api responses
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- Notify/check if the content of a custom gutenberg block has changed on save_post
- I have a website issue I am trying to resolve
- WordPress Custom Post type csv exporter
- Edit Page button is gone
- How to set something to added automatically to the post
- Can`t attach image to a multiple posts