This query imports posts from a CSV.
It creates a new post with the title, excerpt, content and author (provided via username) of each post.
The names of the columns with those fields are provided via variables:
$titleColumn
$excerptColumn
$contentColumn
$authorUsernameColumn
...with default values "Title"
, "Excerpt"
, "Content"
and "Author"
respectively.
The URL of the CSV source must be provided via variable $url
.