WP Manifestindependent plugin directory
manifest / content / wordpress-popular-posts-feed

Popular Posts Feed WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Adds a Popular Posts RSS feed to your WordPress powered site.

★ 3stars
2.0.0latest · 3 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/cabrerahector/wordpress-popular-posts-feed/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Popular Posts RSS feed for WordPress

Adds a Popular Posts RSS feed to your WordPress site.


Table of contents

Description

Popular Posts Feed is a WordPress plugin that adds a popular posts feed to your WordPress-powered web site.

Requirements

Installation

  1. Grab the zip file from the latest release page and then follow the manual plugin installation instructions.
  2. Go to Plugins, find the Popular Posts Feed plugin and click on Activate to enable it.
  3. Go to Settings > Permalinks and click on Save Changes to flush WordPress' permalinks rules and have it detect the new feed.
  4. Visit <your domain name>/feed/popular-posts/ using your browser. If everything went OK, you'll be able to see the popular posts feed right away.

Upgrading

  1. Go to the latest release page and download the attached zip file from the Assets section.
  2. Deactivate and uninstall your current version of the Popular Posts Feed plugin.
  3. Manually install the plugin zip file you just downloaded.
  4. Go to Plugins and activate the Popular Posts Feed plugin.
  5. Go to Settings > Permalinks and click on Save Changes to flush WordPress' permalinks rules.

Customization

The plugin includes various filter hooks that you can use to customize your popular posts RSS feed. Generally speaking though, the one you'll likely want to use is popular_posts_feed_args.

Hook into popular_posts_feed_args to:

  • Change the number of items displayed in the feed.
  • Change the post type (default is post).
  • Have the feed return popular posts from a given taxonomy (category, post_tag, or even a custom taxonomy!)
  • Change the Time Range (default is most popular posts from the past 7 days).
  • Have the feed return popular posts from a given author.
  • etcetera.

The popular_posts_feed_args accepts pretty much the same parameters used by the wpp_get_mostpopular() template tag from the WP Popular Posts plugin.

Here's an example:

/**
 * Have the WPP feed display the 10 most popular posts
 * from category ID 7 from the past 30 days.
 */
function wp3951_my_popular_feed_options( $args ){
    $args['range'] = 'last30days';
    $args['limit'] = 10;
    $args['taxonomy'] = 'category';
    $args['term_id'] = 7;

    return $args;
}
add_filter('popular_posts_feed_args', 'wp3951_my_popular_feed_options', 10);

For more filter hooks, have a look at the feed.php file included with the plugin.

Contributing

  • If you have any ideas/suggestions/bug reports, and if there's not an issue filed for it already (see issue tracker), please create an issue so I can keep track of it.
  • Developers can send pull requests to suggest fixes / improvements to the source.

Releases

4 releases.

Tag
Published
2.0.0 latest
Sep 8, 2023 3 years ago
Aug 13, 2022 4 years ago
Jun 9, 2021 5 years ago
Oct 5, 2018 8 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Popular Posts Feed 2.0.0 · audited by WP Registry

No security issues found.

Audited release
2.0.0
Findings
none
Worst severity
—
Content hash
d08d7a963aaa4bd45b4482e9…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.