=== Statify Widget === Contributors: bitnulleins Tags: statify, widget, popular posts, custom post types, bit01, wordpress Requires at least: 4.6 Tested up to: 5.2.1 Requires PHP: 5.6 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Widget for list popular content (pages, posts, custom post types) – based on Statify plugin. == Description == The *Statify widget* shows the most popular content from [Statify](http://wordpress.org/plugins/statify/) plugin made by pluginkollektiv. Fast and clear! = Statify = Plugin for visitor statistics with emphasis on privacy, transparency and clarity. ** Note **: This widget only works in conjunction with the Statify plugin. = Own content types = Own content types (Custom Post Types) are supported and can also be displayed. = Intelligent summary = Once there are different paths to a content, the widget adds them together and adds the calls. = New: period selectable = You can now choose an individual daily period for the most popular content. Just set in the widget. = Calls of individual contents = The shortcode `[statify-count]` can be used to display calls to the current post or page. With the options "prefix" and "suffix" displayed texts can be checked before (prefix) and after (suffix) the calls: `[statify-count prefix="Total " suffix=" calls."]` Result: A total of 243 views. = Settings = The following settings can be made in the widget: * Title * Content Type (Default: post ) * Amount (default: 5) * Show calls (default: No) * Number of past days = Support = Friendly questions about the widget I like to answer under * Support *. = Author = * Finn Dohrn * [Homepage](http://www.bit01.de) == Installation == Install the plugin [Statify] (http://wordpress.org/plugins/statify/) by pluginkollektiv. And then from the plugin directory "Statify Widget" install and activate. Manually: 1. Load the folder "statify-widget" into the plugin folder (./wp-content/plugins/) 1. Activate the plugin on your page 1. Add the "Satify Widget" under Design > Widgets == Frequently Asked Questions == = The widget does not find any entries = Statify has not added statistics yet. = Show pages and posts together = Yes! Since 1.1.4 that works. Just in the content type widget: select "Pages and posts". He then displays the default content types "post" and "page" together. = Show views of individual articles / pages = This is possible with the shortcode and theme functions. Specifying a prefix and suffix is ​​not mandatory: `[statify-count prefix =" Total "suffix =" calls. "]` The following functions return the number of calls for an article ID (`$ post_id`) in the theme. If no ID is given, the number of the current page will be returned. * `get_statify_count ($ post_id)` (just the number needed echo call) * `statify_count ($ post_id)` (with finished text) Example: ` Calls The total views of the page can be over: `[statify-count prefix =" Total "suffix =" calls. "]` * `statify_count_sum ()` Calling! = I do not have static page as homepage = No problem. A pseudo "Home" entry appears. = I changed the permalink structure = This changes nothing. The plugin takes every Statify entry and adds it together sensibly. = Change design = Just the CSS classes: * `.statify-widget-list {...}` * `.statify-widget-element {...}` * `.statify-widget-link {...}` = Change list from numeric to points = If you want to change the list of contents (1st, 2nd, 3rd, ...) to bullets, just add the following to the CSS: `.statify-widget-element { list-style-type: circle; } ` == Screenshots == 1. Statify Widget Result 2. Statify Widget Settings == Changelog == = 1.2.2 = * Fixed another bug for unpublished posts = 1.2.1 = * Translate whole plugin into English. * Fixed "show views" translation bug. = 1.2 = * English and German language * Fixed a link bug in the widget * Shortcode for total number of views = 1.1.9 = * Correction of a translation error. * List type setting has been removed. = 1.1.8 = * The plugin is now ready for translation. * You can now choose between the list type (`
    ` or `