GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - manton/jsonfeed-wp: WordPress plugin to add a JSON Feed to your site.

BranchesTags
Open more actions menu

Latest commit

 

History

125 Commits
125 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.wordpress-org
.wordpress-org
 
 
.gitignore
.gitignore
 
 
.svnignore
.svnignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
feed-json-comments.php
feed-json-comments.php
 
 
feed-json-functions.php
feed-json-functions.php
 
 
feed-json.php
feed-json.php
 
 
jsonfeed-wp.php
jsonfeed-wp.php
 
 
jsonfeed.png
jsonfeed.png
 
 
jsonfeed.svg
jsonfeed.svg
 
 
phpcs.xml
phpcs.xml
 
 
readme.txt
readme.txt
 
 

Repository files navigation

License URI: http://www.gnu.org/licenses/gpl-2.0.html

Adds feeds in JSON Feed format.

Description

Adds a JSON Feed to your WordPress site by adding /feed/json to any URL.

The JSON Feed format is a pragmatic syndication format, like RSS and Atom, but with one big difference: it's JSON instead of XML. Learn more at jsonfeed.org.

Installation

  1. Upload the plugin files to the /wp-content/plugins/jsonfeed directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

Frequently Asked Questions

What is JSONFeed?

JSON Feed, a format similar to RSS and Atom but in JSON. JSON has become the developers’ choice for APIs, and that developers will often go out of their way to avoid XML. JSON is simpler to read and write, and it’s less prone to bugs.

Can I add other fields to the feed?

Yes you can! There is a filter, json_feed_item, that allows you to modify the items in the feed just before they're inserted into the feed itself. For example, if you want to add a link to a post author's archive page to the respective item in the feed, you can use the following code:

function wp_custom_json_feed_fields( $feed_item, $post ){
    $feed_item['author']['archive_link'] = get_author_posts_url( $post->post_author );

    return $feed_item;
}
add_filter( 'json_feed_item', 'wp_custom_json_feed_fields', 10, 2);

Can I write information to my posts?

This is a syndication format, which means it only represents your posts and comments as feed elements. This is read only, similar to RSS or Atom. It is not an API.

Changelog

1.4.5

  • Sanity check on $max_page
  • Add filter jsonfeed_comments_feed_enable, which if set to false will disable the comments feed header.
  • Add mime type for jsonfeed to filter for W3C Cache Plugin per GitHub issue 67.

1.4.4

  • Fix declaration error

1.4.3

  • Add next_url
  • Add CORS header

1.4.2

  • Update WebSub support

1.4.1

  • Added author field back for compatibility with JSON Feed 1.0.

1.4.0

  • Switch to using GUID for the ID
  • Update to the JSONFeed 1.1 standard
  • Use the RSS versions of title functions to allow these filters to be used

1.3.1

  • Fix attachment array
  • Replace custom function with backcompat of function introduced into Core

1.3.0

  • Add comments template
  • JSONFeed icon now part of repo
  • Allow for multiple attachments
  • Respect summary setting
  • Add support for extra feeds in header

1.2.0

  • dshanske added as a contributor/maintainer
  • Add featured image if set
  • Add site icon if set
  • home_page_url now actually returns the correct URL instead of always returning the homepage of the site
  • Add avatar and URL to author
  • Include site name in feed name in the discovery title
  • Fix issue with timezone not reflecting on date

1.1.2

1.1.1

1.0

  • Initial release

About

WordPress plugin to add a JSON Feed to your site.

jsonfeed.org/

Resources

Readme
GPL-2.0 license
Activity

Stars

193 stars

Watchers

18 watching

Forks

33 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.