Queries LibraryImport HTML from URLs as new posts in WordPress
Import HTML from URLs as new posts in WordPress
This query imports the HTML pages from the given URLs as new posts in WordPress.
From each URL, it retrieves the title from <title>...</title> in the meta, and the content from <body>...</body>, or customized to some specific inner HTML element using the $contentMatchInnerRegex variable.
With $contentMatchInnerRegex, we can target what specific subportion of the <body>'s HTML to capture.
For instance, if the content must be extracted from: