Have you considered to use REST API to bridge the two environments?
Basically you need to hit the posts endpoint https://example.com/wp-json/wp/v2/posts using the after argument that permit to limit response to posts published after a given ISO8601 compliant date.
With the response you can insert new posts and sync the two installation.
More detail about the endpoint and the arguments can be found here https://developer.wordpress.org/rest-api/reference/posts/
Related Posts:
- How can I export WordPress posts’ attachments?
- How much of my site can I recover from public_html?
- WordPress Local And Live Site
- When moving a WordPress installation to a new server, why do I have to update each post before content shows?
- Moving WordPress to new server: no posts found
- How can I export and then import posts with featured images?
- Exporting Data from WordPress into a flat table
- Merging two databases without borking it
- Overwrite posts/pages via import
- Importing posts only – consequences?
- Move posts from a non-wordpress site to wordpress
- My website is showing today’s date instead of published date since db migration to a new wordpress
- Featured image error after importing blog posts
- I moved my site to another server, wp admin works so does the front page, but posts don’t work
- When I click edit on a post, all the content disappear. Does anyone know how to fix this?
- Moving Posts to a new site and maintaining URLs
- Export Posts Without Categories In An XML File
- How do you export and import wordpress blog posts and exclude pagebuilder shortcodes?
- When is the ‘post_content_filtered’ column in database cleared by WordPress?
- Can posts have parents?
- Where is the old post permalink slug stored?
- Separate Database Tables For Different Post Types
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- How can I safely increase the character limit for post passwords?
- How to Group Posts by the First Letter or Number?
- Restore contents of deleted user
- Best way to import users, post and categories from an external database
- Export WP database for import using WP-CLI on Vagrant Box
- How are terms connected with posts in database?
- Migrating WP site to another URL
- How to migrate a WordPress installation from one site to another, including all images?
- How to force update all posts after import
- How to migrate WordPress Blogs into Multisite without using the GUI-Import/Export Feature
- Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms
- Update field in database for users
- Is it good practice to import/export a blog to test a redesign?
- Cannot select certain authors for posts after import
- Import custom database into wp and keep the post id
- why the posts queried from sql is more than those showed on the page?
- product export and import using xml
- Extract the last published post
- Export WordPress from one domain to another domain
- Moved to a new server, backup was a day old and missing 3 posts, anyway to recover them from old host?
- Is there a function to get post info for any publish_status by post ID?
- Your ideas on my though “delete or move all of the posts in a specific category when 3 days are passed”
- How Can I Always Display A Particular Post First Using WP_Query?
- Help on conditional statement to accompany wp_insert_post function please?
- How can I globally italicize list of texts in the UI database or Posts? [closed]
- Can I restore restore content from old Worpress site to a new Worpress site from an archive
- Is it possible to modify posts table to only read for more recent ones?
- How do you do your big exports / imports?
- Bulk Edit Media Library alt, caption, image names
- Syncing WP Database Changes Between Environments: How To Handle Merging w/o touching database
- Menu Items disappearing/being empty on save or post edit
- How to setup default value of post_id
- Prevent a post with a specific ID from being created
- Bulk find & replace on WordPress posts/pages (minus image paths)
- Reusing old post IDs
- Posts not showing content after migration
- Trigger on DB make problem on wordpress?
- Exporting Post type from one theme and importing it to another theme
- Comments are in database, don’t show up in WordPress backend or frontend
- Is there a way to save different data when USER interacts with the same POST?
- How can I stop ‘in use’ message from intermittently blocking my wp_posts table?
- More Than 50K Categories and WordPress Admin Panel Stop Showing Categories and Posts
- how i show manual data in a post
- Clean up customize_changeset in DB
- How do I get a certain set of posts from the database?
- Maximum number of posts per page before affecting performance?
- SQL trigger failes with post_content
- Surrogate ID for posts, is there an alternative field in the posts table?
- get backup file from wordpress database in x days
- Expired Post with More Recent Time Stamp?
- Update all images url imported from HTML pages
- Converting Posts to Pages
- How to change the publishing date of each posts?
- Can’t seem to replicate permalink structure for localhost development site
- Extra field in wp_post instead of postmeta
- Voting System, database connections?
- Migrate bbpress content to posts
- Given two custom post types: Automatically add meta fields from one custom post type to another
- I broke database after reuploading local version – what exactly happened? Database error
- How do I get the WordPress post to display the content instead of an image?
- Tumblr importer
- Load posts from external source if not found in database
- Is there a maximum amount of pages for a multi-page post?
- Importing Concrete5 content to WordPress
- How to make category for word post_content
- What effect can a large wp_post table have on overall site performance?
- Can`t Access Post Page After Migration
- Imported Posts missing summary text on staging site
- How can I merge a several related posts into one post?
- Restore posts, but only posts that exist in my database backup
- Change permalinks in posts via SQL
- Does WordPress import export tool keeps the file hosted on the old website?
- Is it safe to totally unregister the default “post” Post Type
- How to get a list of all posts and their categories?
- WordPress portfolio posts: media not displaying if several images
- How to manually delete post from database without causing conflicts?
- Can’t save/get Patterns’ `post_content` attribute