• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

manton/jsonfeed-wp: WordPress plugin to add a JSON Feed to your site.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

manton/jsonfeed-wp

开源软件地址:

https://github.com/manton/jsonfeed-wp

开源编程语言:

PHP 100.0%

开源软件介绍:

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.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



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
atymic/json2dto: Generate Data Transfer Objects directly from JSON objects发布时间:2022-07-09
下一篇:
badaix/jsonrpcpp: C++ JSON-RPC 2.0 library发布时间:2022-07-09
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap