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
- Where is the old post permalink slug stored?
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- 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?
- 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
- Suggestions for WPMU Migration (advanced)
- Sanitizing `wp_editor();` Values for Database, Edit, and Display
- MySQL Syntax Error upon restoring database from backup [closed]
- Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
- Insert posts in two tables
- Instead of submiting an entire post, is there any way to submit a lite-post or a simple message?
- ‘Invalid post type’ error when importing from one site to another
- Export posts manually selected by end user (not logged in)
- Reset/Reorder posts ID in the MySQL wp_posts table
- Most recent post from another database
- What structure should post_content have in the database?
- How to delete all the content of a wordpress site without deleting the Post and pages?
- Extracting post categories
- Export / import WordPress database
- Create a clone from one WordPress site to another in a few minutes
- How do I migrate blog post images from one domain to a new one?
- Get ALL post ID’s export list (Only id’s. Php or sql not important )
- Import users from old WP site to new one
- Can I search posts and pages for css classes?
- Unable to restore from backup – how to obtain old blog posts?
- Export + Import = wrongly duplicated content
- Move comments only from one WP installation to another
- Problems with WordPress Import
- Copy post to separate database with “add_action(….)”
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- Anyone know why wordpress converts some html entities to their numeric equivalents?
- Remove a shortcode from all WordPress posts
- 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?
- why there are so many posts whoes post_type is revision? will these records waste too much database space?
- How to transform a custom made static HTML website to a WordPress website [closed]
- Delete all drafts?
- Is it possible to use WP_Query to only pull posts with attachments?
- Get posts and include taxonomy term
- Add field to user meta table in database when link is clicked
- How safe is it to delete old posts edits to save database space?
- Best practice to import user base (subscribers) from one website to another?
- Importer fails to import every post
- Delete post revisions only for a single post
- wp_posts table extremely large
- How to Assign / Move all Deleted post to a category
- Saving Post Data in Another Database
- Restore woocommerce orders
- 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
- 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?
- 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]
- 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
- Prevent a post with a specific ID from being created
- More Than 50K Categories and WordPress Admin Panel Stop Showing Categories and Posts
- how i show manual data in a post
- Maximum number of posts per page before affecting performance?
- SQL trigger failes with post_content
- 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?
- 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?
- Load posts from external source if not found in database
- Importing Concrete5 content to WordPress
- How can I merge a several related posts into one post?
- Restore posts, but only posts that exist in my database backup