Skip to content

WP plugin that plugs comments data into the /posts endpoint in WordPress JSON API (WP-API)

License

Notifications You must be signed in to change notification settings

shahin8r/comments-posts-wp-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Comments Posts WP API

Gets your posts and comments with one API call by putting comments inside the /posts endpoint. This way there is no need to do separate API call to /wp-json/posts/ID/comments.

Installation

  1. Unzip and upload the comments-posts-wp-api directory to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress

Usage

Add withcomments in the URI.

Example: /wp-json/posts?withcomments or /wp-json/posts?filter[posts_per_page]=5&withcomments

About

WP plugin that plugs comments data into the /posts endpoint in WordPress JSON API (WP-API)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages