wordpress_ex v0.1.1 WordpressEx.Posts View Source

Wordpress Post endpoints

Link to this section Summary

Functions

Get a single post from id

Get a list of posts

Link to this section Functions

Get a single post from id

Examples:

WordpressEX.Posts.find(123)
WordpressEX.Posts.find(123, context: view)

API Reference

https://developer.wordpress.org/rest-api/reference/posts/#retrieve-a-post

Get a list of posts

Examples:

WordpressEx.Posts.list()
WordpressEx.Posts.list(page: 2, per_page: 3)

API Reference

https://developer.wordpress.org/rest-api/reference/posts/#list-posts