Descriere
„Most And Least Read Posts Widget” is a free plugin for WordPress. developed by Giuliano Polverari (WhileTrue.it) to generate lists of the most and least read posts.
The following options are customizable:
- number of posts to show
- exclude posts whose title contains certain words
- show post hits after the title (style customizable via CSS class)
- exclude posts older than XX days
The plugin starts counting hits once activated, storing them in the „custom_total_hits” custom field without the need of external accounts.
The most popular web crawlers (e.g. Googlebot) are recognized and their hits discarded; also Admin hits are discarded.
Archived post hits are shown in a column inside the backend post list.
The plugin is compatible with multi-language WPML plugin, showing most/least read posts for current language.
Optionally, the number of hits can be shown inside the post content, with:
- a custom phrase, e.g. „This post has already been read XX times!”
- a custom position (above the post, below the post, both)
- a custom CSS style
If you want to show the post hits anywhere inside the template loop, you can the php function provided, e.g.:
Cod scurt
Also, [most_read_posts] a shortcode is available. Use it like this:
[most_read_posts type=”most” posts_number=”5″ show_thumbs=”false” date_from=”2016-01-01″ date_to=”2016-04-30″]
Shortcode attributes:
- type: „most” or „least”
- posts_number
- words_excluded
- title_max_chars
- excerpt_max_chars
- show_thumbs: „true” or „false”
- add_line_break_before_thumbs: „true” or „false”
- show_hits: „true” or „false”
- show_hits_text (default: „views”)
- days_ago
- date_from and date_to: if set, overwrite the „days_ago” attribute (format: YYYY-MM-DD)
Referință
For more informations: www.whiletrue.it
Do you like this plugin? Give a chance to our other works:
Capturi ecran
Instalare
Best is to install directly from WordPress. If manual installation is required, please make sure to put all of the plugin files in a folder named most_and_least_read_posts_widget
(not two nested folders) in the plugin directory, then activate the plugin through the Plugins
menu in WordPress.
Întrebări frecvente
-
I get an error message that says „no results available”
-
The plugin starts collecting hits once installed, so there are „no results available” for a short time, until the first data is stored.
It’s better to show the widget some hours (or days) after having installed it. -
The same post shows up multiple times
-
This uncommon issue can be caused by duplicated custom fields in some posts.
To solve it, inspect the post custom fields and delete unnecessary duplicates of the „custom_total_hits” field. -
Can I customize the thumbs?
-
Yes, you can do it editing the „mlrp_ul” class in your template style.css file.
E.g. 50×50 pixels images, floating on the right:
.mlrp_ul img { width: 50px; height: 50px; float: right; }
Verificări
Contributori și dezvoltatori
„Most And Least Read Posts Widget” este un software open-source. La acest modul au contribuit următoarele persoane.
ContributoriTradu „Most And Least Read Posts Widget” în limba ta.
Te interesează dezvoltarea?
Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.
Istoric modificări
2.5.16
- Plugin tested up WordPress 6.0
2.5.5
- Changed: Avangate ads removal
- Fixed: CSS fix on Settings page
2.5.4
- Added: shortcode „date_from” and „date_to” attributes
2.5.3
- Changed: web spiders update
2.5.2
- Added: shortcode „days_ago” attribute
2.5.1
- Fixed: shortcode default options
2.5.0
- Added: [most_read_posts] shortcode
2.4.4
- Fixed: Settings menu error
2.4.3
- Added: internationalization
2.4.1
- Fixed: Widget constructor update
2.4
- Added: New „Show post excerpts” option
- Fixed: Plugin title WordPress 4.3 style
2.3
- Added: New „Limit post titles to X chars” option
2.2
- Added: New „add line break before thumb” option
2.1.7
- Fixed: Excluded words cleaning
2.1.2
- Changed: Code cleaning
2.1
- Added: WhileTrue RSS Feed
- Changed: Skip updating hits if user is admin
- Fixed: Show post hits also when user is admin
- Fixed: Fix for the „Exclude post whose title contains any of these words” option – thank you Thomas!
2.0
- Added: Use the comma „,” for thousands digits
- Added: Append a custom text (e.g. the word „views”) next to total hits
1.9
- Added: support for WPML plugin, showing most/least read posts for current language
1.8
- Added: show post thumbs option
- Added: „mlrp_ul” ul class for easy CSS styling
- Fixed: better bot recognition
1.7
- Added: php function to retrieve and show hits inside the template loop
1.6
- Added: archived post hits are now shown in a column inside the backend post list.
1.5
- Added: option to exclude posts older than XX days also in Least Read Posts (default: 365 days)
- Added: Frequently Asked Questions
1.4
- Added: option to exclude posts older than XX days in Most Read Posts (default: 365 days)
1.3
- Added: style customization of hits on widget, through the „most_and_least_read_posts_hits” CSS class
- Changed: hits on widget put out of the link
- Fixed: query limited only to published posts
- Fixed: error while saving widget options
- Fixed: error while opening the Settings page
1.2
- Added: option to show hits after the post title, inside the widgets
1.1
- Added: optionally show hits inside the post content, with phrase, position and css style customization
1.0.0
Lansare inițială