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?
- 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?
- Export WP database for import using WP-CLI on Vagrant Box
- 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
- Does WordPress Import/Export tool actually exports media (images) as well?
- 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?
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- 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?
- Split WP_POST table based on post types
- Most recent post from another database
- What structure should post_content have in the database?
- How to modify post content?
- Create a clone from one WordPress site to another in a few minutes
- Polylang post_translations key [closed]
- Import users from old WP site to new one
- What is the difference between wp-admin>Export>All content and MySql dump and import
- Can I search posts and pages for css classes?
- Unable to restore from backup – how to obtain old blog posts?
- Transferring WordPress Database – Serialised data
- Emojis replaced by ‘?’ automatically
- Export + Import = wrongly duplicated content
- Problems with WordPress Import
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- wp_posts table: safely remove unused columns to save database storage
- Anyone know why wordpress converts some html entities to their numeric equivalents?
- Remove a shortcode from all WordPress posts
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- How to transform a custom made static HTML website to a WordPress website [closed]
- 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
- How to import nested categories from XML file?
- Delete post revisions only for a single post
- How to Assign / Move all Deleted post to a category
- Display post number by category
- Output Post with ACF Fields into other Post
- Saving Post Data in Another Database
- Restore woocommerce orders
- 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
- product export and import using xml
- Moved to a new server, backup was a day old and missing 3 posts, anyway to recover them from old host?
- Help on conditional statement to accompany wp_insert_post function please?
- 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?
- Bulk Edit Media Library alt, caption, image names
- 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
- Reusing old post IDs
- Trigger on DB make problem on wordpress?
- More Than 50K Categories and WordPress Admin Panel Stop Showing Categories and Posts
- Maximum number of posts per page before affecting performance?
- SQL trigger failes with post_content
- get backup file from wordpress database in x days
- 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
- Is there a maximum amount of pages for a multi-page post?
- 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
- 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?
- How to manually delete post from database without causing conflicts?