Now I trying WP REST API, and I made a plugin that create Widgets using WP REST API.
Of course the plugin needs “WP REST API(Version2)”.
If you want to try it, you have to install “WP REST API(Version2)”.
How to install
Search “REST API Widgets”, you can find it.
How to Use
If you activate this plugin, you can use some Widgets.
New Post List Widget
If you want to change API query, you can use ‘rest-widgets-postlist-query’ filter.
$api_url = home_url( ‘/’ ). ‘wp-json/wp/v2/posts’;
$api_url = apply_filters( ‘rest-widgets-postlist-query’ , $api_url );
$api_url = esc_url( $api_url );
rest-api-widget/class.postlist.php at master · hideokamoto/rest-api-widget
All Comment List Widget
Comment Form Widget
In fllowing page,this Widget is hidden.
– Closed Comment Post