Queries LibraryImport new posts from WordPress RSS feed
Import new posts from WordPress RSS feed
This query imports all the new posts from a WordPress RSS feed, using the title, content and excerpt of the post.
The new posts are those created in the last 24 hs (configurable via variable). Execute this persisted query with a daily automation task to automatically import all new posts from the other site.
Variable $url receives the URL of the WordPress post archive's RSS feed. It usually is the post archive URL + "/feed/rss/?withoutcomments=1". Eg:
Variable $timeDeltaInSeconds indicates from when to consider a post as a new post. By default it's 86400 seconds (i.e. one day).