get_wp_pages: Retrieve WordPress Pages

Description Usage Arguments Value Examples

View source: R/get-wp-pages.R

Description

Retrieve pages made on the WordPress site.

Usage

1
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

1
2
3
4
## Not run: 
get_wp_pages(root_url = 'https://domain.com',page_count = 200, after_date = NULL)

## End(Not run)

wordpressr documentation built on June 2, 2021, 1:06 a.m.