top-10
top-10 copied to clipboard
Top 10 - Popular Posts plugin for WordPress
Allow the block to use global settings for dropdown options vs needing to set everything manually.
Sample code: ` global $wp_filesystem; // Initialize the WP_Filesystem class if ( ! isset( $wp_filesystem ) ) { require_once ABSPATH . '/wp-admin/includes/file.php'; WP_Filesystem(); } // Open the file for writing...
https://github.com/WebberZone/top-10/blob/6200e43ec142403216ee93e245d0088db44fe618/includes/frontend/class-display.php#L896 Add a new variable to display content for when there is **more text**.
By default, the plugin should cache the posts. Currently cache is set to false and user needs to enable it manually. Also, when saving posts, the plugin should check if...
As per the above, right now the admin columns work for posts and pages only. Add this to all other post types.
Show the posts for the day and all time in the admin area.
Currently, Exclude categories is specific for the current category only but not sub-categories. Add a new option to exclude posts on sub-categories/ descendent categories. Refer: https://wordpress.org/support/topic/display-top-posts-within-specific-categories-or-sub-categories?replies=3
Use [.getElementsAtEventForMode(e, mode, options, useFinalPosition) ](https://www.chartjs.org/docs/latest/developers/api.html#getelementsateventformode-e-mode-options-usefinalposition) to fetch the point on click and then redirect to a new page or reload the top posts to display them for a particular...