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
- Redirection – bulk edit 404s to new tomain
- How do you add thumbnail support for custom post types?
- How To Have Two Gutenberg Editors On One Post?
- Using single.php from plugin folder instead of default template folder
- Verify if tag is used on posts
- getting video dimensions
- Display posts for a single post format
- Can I change a post to a page by changing it’s type?
- Publish posts only after the condition is met
- Order post by year DESC and month ASC
- Showing random content / pictures from earlier posts in a sticky post?
- Change existing label in the admin bar with something else
- Populating a page with content from post custom fields
- Append a to every post to force additional page link (and static content)
- Limit function to specific post category
- Function to show random posts from a category
- Change Order of Admin Posts Depending on Meta
- how to programmatically change post tags
- wp query with dynamic taxonomies and terms?
- How can I hide the sidebar from a specific post?
- How to get a list of all the years that have posts
- How do I use `posts_distinct` correctly?
- How to find what index page a post is on?
- Admin Posts Table Column Fitlering is not working for Custom Post Type
- WordPress REST API not returning all posts
- Get Posts that are in the current month or later
- WP Query to Get Array of Slugs
- Get Meta Key Value While Saving Post
- Displaying Latest Posts on a Page
- Email entire post contents
- How can i display gallery shortcode output under Post text
- Hiding Draft Post In Admin
- How to limit posts by category
- List category posts alphabetically on archive.php
- How can you change all past posts’ images to link to none instead of the image file?
- Apostrophe in a possessive appears as an open-single-smart-quote instead of a closed one
- Display post x of y within category
- WordPress Automatic Filename Changer
- How to save meta checkbox WordPress
- Sidebar show posts by current category also in single post
- Category Redirects to homepage [closed]
- Displaying post excerpt using wpdb query
- How to display Changing post link for 24 hours in x category
- Upload attachment from external site
- Custom permalink for each post
- Related Posts: Changing Function For Posts Per Page
- load more posts by category
- Import custom database into wp and keep the post id
- Retrieve a specific post’s featured image and show on a different page
- WordPress wp_editor to post and edit
- How to display Post title By ID and its Thumb Contents
- Is there a way to define the $post var outside the loop?
- How do I keep raw HTML in my RSS feed and not lose my paragraph breaks?
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Blog Posts – Scroll to view more
- After updating to 5.9, when the posts page is loaded in the browser it uses wp-includes/template-canvas.php?
- Show only posts with titles/permalinks that do not contain certain words
- index.php not getting blog posts anymore
- Mysql update menu_order problem
- Put page on Archived statut after end of publication date
- Blog Post slider not working
- Display new posts categories in separated divs
- Point to a page when there is no results
- Remove All in One Seo from Posts for Contributors
- Add row after three columns
- Show posts between two Custom Fields date
- How to display an icon when a new post is published and then remove it when a specific time past?
- How to store post rating system data post independent?
- Displaying different posts Via wp_list_categories()
- get_post_meta property of non object
- Which hooks are essential for post templates?
- Post UI Tabs plugin double fade effect
- Error 404 blog/page/2/
- WordPress limit post that subscriber can create
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- Blog Posts Work in Preview, But Are Not Visible on the Live Page – READ MORE u003cspan aria-hidden=’true’u003e→u003c/spanu003e Error