Title: Most And Least Read Posts Widget
Author: whiletrue
Published: <strong>8 augusti 2011</strong>
Last modified: 14 augusti 2026

---

Sök tillägg

![](https://ps.w.org/most-and-least-read-posts-widget/assets/banner-772x250.png?
rev=1294914)

![](https://ps.w.org/most-and-least-read-posts-widget/assets/icon-256x256.png?rev
=1294899)

# Most And Least Read Posts Widget

 Av [whiletrue](https://profiles.wordpress.org/whiletrue/)

[Ladda ner](https://downloads.wordpress.org/plugin/most-and-least-read-posts-widget.2.5.21.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/most-and-least-read-posts-widget/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/most-and-least-read-posts-widget/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/most-and-least-read-posts-widget/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/most-and-least-read-posts-widget/#developers)

 [Support](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/)

## Beskrivning

”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.:

    ```
    echo most_and_least_read_posts_get_hits(get_the_ID());
    ```

#### Shortcode

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)

#### Referens

For more informations: [www.whiletrue.it](https://www.whiletrue.it/most-and-least-read-posts-widget-for-wordpress/)

Do you like this plugin? Give a chance to our other works:

 * [Good old Share](https://www.whiletrue.it/really-simple-share-wordpress-plugin/)
 * [Good old Twitter Feed Widget](https://www.whiletrue.it/really-simple-twitter-feed-widget-for-wordpress/)
 * [Tilted Tag Cloud Widget](https://www.whiletrue.it/tilted-tag-cloud-widget-per-wordpress/)
 * [Reading Time](https://www.whiletrue.it/reading-time-for-wordpress/)

## Skärmdumpar

[⌊Sample Widget on site, plain wiew⌉⌊Sample Widget on site, plain wiew⌉[

Sample Widget on site, plain wiew

[⌊Sample Widget on site, with post hits and thumbs⌉⌊Sample Widget on site, with 
post hits and thumbs⌉[

Sample Widget on site, with post hits and thumbs

[⌊Options available in the Admin Widget box⌉⌊Options available in the Admin Widget
box⌉[

Options available in the Admin Widget box

[⌊Options available in the Admin Settings menu⌉⌊Options available in the Admin Settings
menu⌉[

Options available in the Admin Settings menu

## Installation

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.

## Vanliga frågor

### 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; }

## Recensioner

![](https://secure.gravatar.com/avatar/ee60b1df14cc0d55c1a1de5f4c483a7b2d35843826d3924eef8fb29bc1aaeb45?
s=60&d=retro&r=g)

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-1055/)󠁿

 [omaster](https://profiles.wordpress.org/omaster/) 3 september 2016

Thank you! This is a great plugin

![](https://secure.gravatar.com/avatar/ccdfbcf48f1102d4719ca08b9f42390491dda7d0a08cb730be41899269809c24?
s=60&d=retro&r=g)

### 󠀁[good…](https://wordpress.org/support/topic/good-1818/)󠁿

 [laurentlori](https://profiles.wordpress.org/laurentlori/) 3 september 2016

Works…

 [ Läs alla 6 betyg ](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/)

## Bidragsgivare och utvecklare

”Most And Least Read Posts Widget” är programvara med öppen källkod. Följande personer
har bidragit till detta tillägg.

Bidragande personer

 *   [ whiletrue ](https://profiles.wordpress.org/whiletrue/)

”Most And Least Read Posts Widget” har översatts till 1 språk. Tack till [översättarna](https://translate.wordpress.org/projects/wp-plugins/most-and-least-read-posts-widget/contributors)
för deras bidrag.

[Översätt ”Most And Least Read Posts Widget” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/most-and-least-read-posts-widget)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/most-and-least-read-posts-widget/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/most-and-least-read-posts-widget/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/most-and-least-read-posts-widget/)
via [RSS](https://plugins.trac.wordpress.org/log/most-and-least-read-posts-widget/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 2.5.21

 * Plugin tested up WordPress 7.1
 * Fixed: XSS vulnerability

#### 2.5.5

 * Added: New ”Add line break before thumb”, ”Limit post titles to X chars” and ”
   Show post excerpts” options
 * Added: internationalization
 * Added: [most_read_posts] shortcode
 * Added: Use the comma ”,” for thousands digits
 * Added: Append a custom text (e.g. the word ”views”) next to total hits
 * Added: WhileTrue RSS Feed
 * Changed: web spiders update
 * Changed: Avangate ads removal
 * Changed: Skip updating hits if user is admin

#### 1.0.0

Första utgåvan

## Meta

 *  Version **2.5.21**
 *  Senast uppdaterat **3 månader sedan**
 *  Aktiva installationer **900+**
 *  WordPress-version ** 2.9 eller senare **
 *  Testat upp till **7.1.4**
 *  PHP-version ** 7.4 eller senare **
 *  Språk
 * [English (US)](https://wordpress.org/plugins/most-and-least-read-posts-widget/)
   och [Swedish](https://sv.wordpress.org/plugins/most-and-least-read-posts-widget/).
 *  [Översätt till ditt språk](https://translate.wordpress.org/projects/wp-plugins/most-and-least-read-posts-widget)
 * Etiketter
 * [most read](https://sv.wordpress.org/plugins/tags/most-read/)[popular posts](https://sv.wordpress.org/plugins/tags/popular-posts/)
   [post](https://sv.wordpress.org/plugins/tags/post/)[posts](https://sv.wordpress.org/plugins/tags/posts/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/most-and-least-read-posts-widget/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  6 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/#new-post)

[Visa alla recensioner](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/)

## Bidragande personer

 *   [ whiletrue ](https://profiles.wordpress.org/whiletrue/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/)

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](https://www.whiletrue.it/)