In general test enviroments better use the same domain name as the live site. Since it doesn’t seem like you follow such pattern (and yes, it is harder to follow), you need to make sure you convert all the URLs in the DB properly, and the way you do it will fail with any data which is serialized. Use wp-cli to change URLs instead of re-inventing your own solution.
In addition you will probably will want to change the option or add some code to make sure that google do not try to index the test site.
Related Posts:
- How to completely disable a taxonomy archive on the frontend?
- Why is get_post_format() for “Standard” returns empty
- Custom post types and child theme
- Password-protect a custom rss feed
- 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 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?
- 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
- Get term name and term parent into custom post type permalink
- 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
- why post_class() function apply css classes to all other files?
- 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?
- Custom post type is using the index.php template
- Create a simple Testimonial page
- One Site. One Theme. Multiple Stylesheets without plugins?
- 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?
- 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
- Query when is one or several values
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- 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
- 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
- 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?
- How to manage wordpress knowledge base/wiki/posts collections
- How to get ‘Products’ on home page?
- 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?
- How do you use orderby with meta_query in WordPress 3.1?
- Linking Two Post Types
- Random post, once per day
- Prevent Google from indexing custom post types?
- How to display regular posts & custom post types that fall under a category using just the generic category template?
- Remove Trash / Delete option for Custom Post Type / Taxonomy
- How to filter custom post types by custom category taxonomy
- WP_Query to loop a Custom Field, Custom Post Types do not show
- Getting arguments for register_post_type from a plugin generated post type
- Limit taxonomy results to a single cpt
- Redirect to post with only post ID in the URL vs post_type/post ID
- Custom-post-type-archive: posts sorted/filtered by year?
- Change Permalink Structure for Tag.php template
- Remove post type slug of all post types from permalinks
- wp_insert_term in a multisite installation
- Custom Post Type content isn’t shown
- non-hierarchical post type with hierarchical url structure
- Sitemap generation
- How can I set the height of the classic editor per post-type?
- Set templates for custom post types
- Main query not querying any posts in custom taxonomy template
- Can variables be used to rewrite a Custom Post Type permalink? [duplicate]
- Not able to export large no. of posts in csv
- How do I update_post_meta() or add_post_meta() with an AJAX call
- Display Parent-Child Posts in specific order by comparing IDs in array
- How to make post title to appear after an image?
- Pagination on custom post type without plugin
- How can I check the rewrite slug of current post type listing page
- post_type incorrect for custom post type
- How to configure the output of breadcrumbled CPT UI
- how to create custom taxonomy drop downs for parents and child
- How to insert post 6 times after user register like ask.fm
- Not Able to List CPT Based on Taxonomy Term
- Duplicate Custom Post Type
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Can’t open Custom Post Types Link in navigation
- Remove custom taxonomy ‘post-type’ from post URL
- Using custom post types within a section of a template
- Pulling in a particular post into a single page based on the post id passed into the code
- Custom order of CPT posts by title, in wp-admin area by default