I just ran into something similar to this. It had to do with refreshing permalinks. If you go to Settings -> Permalink and just click save see if it fixes your problem. It did for me. In the end I added the following to my functions.php file which updated the permalinks for me. I was using custom post types. Maybe you have a plugin that is doing the same.
add_action('admin_init', 'flush_rewrite_rules');
Related Posts:
- Some posts returning 404 instead of displaying post
- Custom post type single (permalink) throws a 404 error
- Unable to modify(update) posts – Page not found
- Debugging WP routing
- PHP Notice error (when on 404 page)
- Getting a 404 error when clicking edit page
- 404 on paginated blog pages
- How to display content from the main blog on another from multisite network as it would be its own
- Why does my site often display 404 on subpages?
- custom post template file not shown, instead all the time 404.php
- One post on my website is going to a 404 page
- How do I locate the exact location where this error is occurring 404 page not found
- 404 error on default post type and default taxonomy fronted page
- Problems with Page Not Found
- Posts and Pages: 404 Page not found
- If post does not exist, do something
- Prevent 404 of Author pages without posts
- including 404 page in post page
- 404 error on every post and page other than home
- Get post title of faulty link on 404 error page
- Getting 404 when using rewrite rule for posts
- Password-protected Posts lead to 404 Error
- Cannot Create a new Post [closed]
- Post pages are redirecting to the 404 page in wordpress
- Stop WP from creating “Sample Page” and “Hello World!” post
- Count how many posts in category
- Custom Single Post By Category
- Post slugs and images cannot have same name?
- Convert custom fields to post categories
- Hide password protected posts in admin
- Most viewed post for the last 2 days using WP_Query
- Adding Post Counts to Menu (Nav) Programmatically?
- Order Posts by Alphabetical for Each Letter
- Odd/even class on article tag
- Filter/Remove HTML Elements on all posts and pages
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- How to get posts by multiple post slugs? [duplicate]
- Changing next and previous post link text
- Define a name to the posts slug
- Get post id in wordpress action?
- The post loop doesn’t work
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- How to include a post type in the admin/backend?
- Can I use images as anchor tags with
- IP camera jpg stream to post
- Adding custom fields to bbpress reply form
- How To Hide A Post
- Skip in WordPress Post ID’s, can this cause issues?
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Why my wp_posts data is so huge?
- Adding a user’s ID behind the tag ref link address
- One post out of more than twenty shows odd picture (from post) in the header
- Benefits to using semantic HTML in post content? [closed]
- custom word in custom permalink structure
- Post filtering is returning blank page
- Using wp_tag_cloud with only posts published in specific year
- Display Featured Posts Grid on Static Page (Gazette)
- How to Featured content with images in home page?
- how to display today’s most viewed posts order by custom meta “views”
- Keyboard shortcut for headings on safari
- Optimal WP Web App Backend for mobile app development
- Change permalinks for posts & for custom post types
- WordPress posts have a different URL to the index
- How to customize blog post titles to render a YouTube logo on posts with an embedded video?
- unable to write to the database while uploading images
- Restricting displayed posts to posts from only select authors
- Updating post status via rest api
- How to Make my Homepage Display a Single Specific Post?
- unable to display two post per page in wordpress front-page.php
- WP Ajax returning 0, can’t find action
- Anchor links turn to p nbsp p
- Scheduled posts appear as clickable in the front end
- Counting Posts by Category
- show image gallery in archives or category page
- 2 Domains, Same Content, Different Titles?
- Adding wordpress posts using phpmyadmin
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- Show author bio box
- How can I get post text from all posts on a WordPress news site?
- Use special template for the first post in the loop
- Fixing the WP Post Object for Custom Route
- Changing the Category for all posts of an Author
- Posting a comment redirects admin/users to blank page
- Is it possible to have dynamic post id # in add_menu_page()?
- Expired Post with More Recent Time Stamp?
- Send/Publish a Post front end
- Hiding menu on mobile only when viewing posts?
- Posts don’t appear on Template Page
- Latest Posts not in the right order
- Howto put advertising as post number 1,2,3 etc
- WordPress sub-posts and permalinks
- limit posts per page
- WordPress Admin Tables in Post View
- How do I insert a custom field in a user submitted post?
- Show List of Posts With Comments Open
- Onclick open posts displayed in slider in a popup [closed]
- Listing category and its posts one by one
- Print out one of 2 post category [closed]
- How to get if category has posts?
- Output number of WordPress posts remaining until a post milestone is reached