Learn R Programming

wordpressr (version 0.2.3)

get_wp_pages: Retrieve WordPress Pages

Description

Retrieve pages made on the WordPress site.

Usage

get_wp_pages(root_url, page_count = Inf, after_date = NULL)

Arguments

root_url

The WordPress site for which pages are sought to be retrieved.

page_count

The maximum number of pages to return, sorted by the most recent date. Default value is to return all pages made on the site.

after_date

The date after which pages 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_pages(root_url = 'https://domain.com',page_count = 200, after_date = NULL)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab