-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to the popular posts widget #330
Comments
That's something we've been working on #54. Feel free to subscribe to that issue to follow our progress on this.
We created the
You can use the I hope this helps. |
Concerning #54, that's a closed issue, so would subscribing to it actually get updates? Concerning the filters, are those available in the widget? If not, then I don't see why this should be closed. I'm suggesting those be added to the widget. |
These filters are indeed available with the Top Posts widget. For example, if you wanted to change the timeframe used by the Top Posts widget to 30 days, you could use the following code in a functionality pluginto hook into the function jeherve_top_posts_timeframe() {
return '30';
}
add_filter( 'jetpack_top_posts_days', 'jeherve_top_posts_timeframe' ); |
So to get this functionality with the Top posts widget, I need to install another plugin and addd custom php code? I'm not saying I can't do that, but my request was to add this functionality into the widget directly. That's the feature request - to add it to the widget directly. |
That's correct. We've chosen not to add these options to the widget itself, not to overload the widget settings with too many options. Jetpack includes many filters (306 at the moment) to allow you to customize the default behaviour of the plugin without having to edit the core plugin files. We are, however, considering adding a Post Type option, as per #54. I hope this clarifies things a bit. |
The main blog in a multisite install is typically ID 1. This can be altered by altering the database directly. This commit dynamically pulls the proper main blog id. Resolved #330
There are three things that would make that popular posts widget better (IMHO):
Being able to select Posts, Pages or Both
Being able to select one or more categories as a filter (as include or exclude)
Being able to define the time period. Right now I think it's a rolling popularity over 24-48 hours? That seems odd to me as only very high traffic sites with many posts per day would benefit from that. For most sites, they'd want to be able to set it to a month, or a year, or from the beginning of the site.
The text was updated successfully, but these errors were encountered: