=== WP-API JSON Feed === Plugin Name: WP-API JSON Feed Plugin URI: https://wordpress.org/plugins/wp-api-json-feed/ Author: Felix Arntz Author URI: https://felix-arntz.me Contributors: flixos90 Donate link: https://felix-arntz.me/wordpress-plugins/ Requires at least: 5.4 Tested up to: 6.9 Requires PHP: 5.6 Stable tag: 1.1.0 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Tags: json feed, feed, rest api Implements JSON feeds following the official JSON feed specification by using the WordPress REST API. == Description == Implements JSON feeds following the official JSON feed specification by using the WordPress REST API. By default, only a JSON feed for regular posts is added. This can be easily customized to also provide JSON feeds for e.g. certain custom post types. * Adds JSON feeds following the official [version 1.1 spec](https://jsonfeed.org/version/1.1). * Adds a JSON feed for posts to the REST API by default (e.g. at `/wp-json/feed/v1/posts`). * Allows adding JSON feeds for other post types by using a `show_json_feed` argument when registering the post type. * Places a link tag to the current feed inside the HTML head tag. * Maintains backward compatibility with the previous JSON feed [version 1 spec](https://www.jsonfeed.org/version/1/). * Contains extensive filters to modify the feed responses as necessary. == Installation == 1. Upload the entire `wp-api-json-feed` folder to the `/wp-content/plugins/` directory or download it through the WordPress backend. 2. Activate the plugin through the 'Plugins' menu in WordPress. = Administration = Once the plugin is activated, it will work out of the box and provide a JSON feed for posts. If you want to provide JSON feeds for further post types, you need to specify an additional argument `show_json_feed` when registering the post type, and set it to a boolean `true`. You may also specify a `json_feed_base` argument being a string identifier that should be used in the feed URL. If no string identifier is provided, the post type slug will be used. == Frequently Asked Questions == = How can I add a feed for my custom post type? = To provide a JSON feed for your custom post type, you need to specify an additional argument `show_json_feed` when registering the post type, and set it to a boolean `true`. You may optionally specify a `json_feed_base` argument being a string identifier that should be used in the feed URL. If no string identifier is provided, the post type slug will be used. Here is an example, supporting a JSON feed for a custom post type "article" and setting its feed base to "articles" so that the feed will appear at `{restURL}/feed/v1/articles`. ` ` tag for the most relevant JSON feed based on the current content, in addition to the general posts JSON feed. * Enhanced: Include a `user_comment` field in the JSON feeds. * Tweaked: Bump the minimum required WordPress and PHP versions. * Tweaked: Use modern test infrastructure including revised PHPUnit tests, and GitHub Actions to ensure long-term stability. * Fixed: Remove unnecessary call to `load_plugin_textdomain()`. = 1.0.0 = * First stable version