WordPress.org

Forums

Feed JSON
Syndication feeds show the most recent (1 post)

  1. iambriansreed
    Member
    Posted 1 year ago #

    The plugin defaults to 10 items but doesn't respect the setting "Syndication feeds show the most recent" the wp_option value posts_per_rss.

    I fixed it in my plugin by changing this line:

    add_action( 'do_feed_json', array( $this, 'do_feed_json'), 10, 1 );

    to:

    add_action( 'do_feed_json', array( $this, 'do_feed_json'), get_option( 'posts_per_rss', 10 ), 1 );

    Thanks.

    https://wordpress.org/plugins/feed-json/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Feed JSON
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.