There are, still, references to old domain in your database, which have to be fixed.
Step 1: go to Settings -> Permalinks and click on Save Changes button. This will fix your permalinks.
Step 2: install and activate Better Search Replace plugin. Go to Tools -> Better Search Replace. Replace the old domain ( example.com ) to the new one ( whatever.net ) in all tables.
You can skip Step 2, if the domain name didn’t change.
Make sure that admin cap is exactly a:1:{s:13:"administrator";b:1;}
.
Related Posts:
- MySQL Query to Retrieve Category from wp_posts
- SQL Query for getting all posts in their latest revised state
- Search & Remove Specific Shortcode From All Posts
- Manually delete post from database
- How to force update all posts after import
- Query All users that has post
- Manually removing revision post types
- Reset/Reorder posts ID in the MySQL wp_posts table
- How do I find which articles are missing a featured image in The WordPress database?
- Tags to Post-ID mysql query. Tag Search
- wp_insert_post – duration
- Get user categories with most posts in it
- MySql query to get posts with all meta and terms
- Custom order for Mysql array
- List authors with the last post title and order by last post date
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Remove a shortcode from all WordPress posts
- Order posts alphabetically: how to set order=asc in mysql query?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- Delete post results in “Cannot delete or update a parent row: a foreign key constraint fails”
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- update image path with words starting uppercase to lowercase chars
- Queries take 120+ seconds on my large WordPress site
- Database hacked – random posts are modified
- Need to change all links in page content but not in post content
- Can’t update WordPress Page if post_content is Empty
- Restore woocommerce orders
- How to select particular month post from table and update the post status using MySQL?
- How do post IDs work in WordPress?
- Get author posts count after excluding a category
- get last post’s link with SQL query
- query for filtering published posts?
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Deleting post tags removes categories
- Return records between two meta datetimes saved as strings
- WP query taxonomy optimization
- MYSQL: Create SQL query to search for string and replace
- Query to fetch custom taxonomy along with post title
- Mysql update menu_order problem
- Bulk find & replace on WordPress posts/pages (minus image paths)
- WordPress MySQL Search and replace with wildcard?
- Add postmeta to all blog posts
- ‘posts’ table should not store the absolute image path
- Dev and prod on the same database- dev version active for IOS
- load post data into mysql
- SQL trigger failes with post_content
- Converting Posts to Pages
- How to change the publishing date of each posts?
- SQL query to remove first image in all posts
- Delete junk text from all the post using my sql command
- FIND and REPLACE wp_posts AND IGNORE custom post type mysql query
- How to create a post based on data in a table?
- If meta_key exists then don’t select this post?
- How to update wp_posts with just the returned comment count from wp_comments (SQL GROUP BY)
- Prevent Authors from viewing each others Posts
- Removing filter dropdown in posts table (in this case Yoast SEO)
- How to know if get_posts() failed?
- Show related posts by category but ignore one category
- Replacing all attachment links in post with media file link
- Post content being duplicated by the_content();
- Disable REST API for a user ROLE
- Filter Posts By Tag
- Custom Post Templates
- Exclude newest post from category X but show rest
- Query Posts multiple conditions
- post categories
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Can I search posts and pages for css classes?
- how to get post order by post id wp_query?
- How to display all posts divided/ordered by post date? [closed]
- Multiple comment forms on a single page
- Why I can not I use the variable outside my function?
- Extracting relevant tags associated with that particular single post only
- Display a mixed list of posts and media
- How to get WordPress post ID of last visited page?
- Why in my query is display two title?
- Custom Articles page only showing a limited number of posts per page
- Custom posts listing widget always returns 1 extra result
- Automatic blog page with custom design [closed]
- Short link to read complete post
- Automatic duplicate/copy of post to a related page in WordPress
- Change Old WordPress Post Date Year
- WordPress doesn’t save or publish new posts
- Yoast breadcrumb URL shows category instead of the page
- Private post caught in endless redirect loop
- Foreach issue in get_posts function
- Contributor edits published post and sends for review – post is made private?
- Why does my “Add New Post” page have an old post in it?
- migrate only recent posts
- Is it possible to make a custom post that adds multiple pages?
- How do I make it so that new posts within a certain category go into a certain page?
- Assign specific ads to specific categories/posts
- Reading Setting Not Working for Number of Posts
- 404 for some custom taxonomy not ALL taxonomy
- Add tags to post before it’s created
- can’t post immediately
- Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
- save_post not working
- WordPress + Polylang – Error 404 when trying to preview draft post on different language