Learn R Programming

wordpressr (version 0.2.3)

get_wp_posts: Retrieve WordPress Posts

Description

Retrieve posts made on the WordPress site.

Usage

get_wp_posts(root_url, post_count = Inf, after_date = NULL)

Arguments

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.

Value

A data frame returning the post ID, publication date, title, excerpt, content, tag IDs, category IDs, and author IDs.

Examples

Run this code
# NOT RUN {
get_wp_posts(root_url = 'https://domain.com',post_count = 200, after_date = NULL)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab