Retrieve posts made on the WordPress site.
get_wp_posts(root_url, post_count = Inf, after_date = NULL)
root_url | The WordPress site for which posts are sought to be retrieved. |
---|---|
post_count | The maximum number of posts to return, sorted by the most recent date. Default value is to return all posts made on the site. |
after_date | The date after which posts should be returned. |
A data frame returning the post ID, publication date, title, excerpt, content, tag IDs, category IDs, and author IDs.
if (FALSE) { get_wp_posts(root_url = 'https://domain.com',post_count = 200, after_date = NULL) }