Title: Inaikas Posts Widget
Author: Mohammed Abdellaoui
Published: <strong>November 8, 2026</strong>
Last modified: November 8, 2026

---

Search plugins

![](https://ps.w.org/inaikas-posts-widget/assets/banner-772x250.png?rev=3791080)

![](https://ps.w.org/inaikas-posts-widget/assets/icon-256x256.png?rev=3791080)

# Inaikas Posts Widget

 By [Mohammed Abdellaoui](https://profiles.wordpress.org/inaikas/)

[Download](https://downloads.wordpress.org/plugin/inaikas-posts-widget.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/inaikas-posts-widget/#description)
 * [Reviews](https://wordpress.org/plugins/inaikas-posts-widget/#reviews)
 *  [Installation](https://wordpress.org/plugins/inaikas-posts-widget/#installation)
 * [Development](https://wordpress.org/plugins/inaikas-posts-widget/#developers)

 [Support](https://wordpress.org/support/plugin/inaikas-posts-widget/)

## Description

Add a list of posts to a sidebar, or place the same list anywhere with a shortcode.

 * Choose latest posts or best posts.
 * Rank best posts by views or by comment count.
 * Set the number of posts (1 to 12) and how many posts fit in one row (1 to 4).
 * Filter by category.
 * Show or hide the featured image, date and comment count.
 * Hide the post that is currently being viewed.

The widget prints nothing when no posts match, so it never leaves an empty box.

### Shortcode

The same list can be placed in a post, a page, or an Elementor shortcode widget.

The widget form shows a ready example built from its current settings.

    ```
    [tdd_posts]

    [tdd_posts source="best" count="6"]

    [tdd_posts source="best" best_by="comments" count="6"]

    [tdd_posts source="latest" count="8" columns="3" category="recipes"]

    [tdd_posts source="best" count="4" columns="2" title="Popular Recipes" show_comments="0"]
    ```

Attributes:

 * `title` – optional heading above the list.
 * `source` – `latest` or `best`. Default `latest`.
 * `best_by` – `views` or `comments`. Default `views`. Only used with `source="best"`.
 * `count` – number of posts, 1 to 12. Default `6`.
 * `columns` – posts per row, 1 to 4. Default `1`.
 * `category` – category ID or slug. Empty means all categories.
 * `show_thumbnail` – `1` or `0`. Default `1`.
 * `show_date` – `1` or `0`. Default `1`.
 * `show_comments` – `1` or `0`. Default `1`.
 * `exclude_current` – hide the post being viewed, `1` or `0`. Default `1`.
 * `heading_level` – heading tag for `title`, 2 to 6. Default `2`.
 * `class` – extra CSS class on the shortcode wrapper.

### Privacy

When a visitor opens a single post, the plugin adds one to that post’s view
 counter
and stores the total number of views for each post.

To ignore repeated visits, the plugin keeps a keyed hash of the visitor IP
 address(
not the raw address) for 30 minutes in a temporary option. The hash cannot be turned
back into an address, and it is removed automatically when the 30-minute window 
ends. The plugin does not send data to any external service.

View counting can be disabled with the `tdd_posts_widget_count_views` filter.
 Suggested
privacy policy text is also available in **Settings  Privacy  Policy Guide.

## Installation

 1. Upload the plugin folder to `wp-content/plugins/`.
 2. Activate the plugin in **Plugins**.
 3. Go to **Appearance  Widgets** and add **Posts List (Latest / Best)** to a sidebar.

## FAQ

### Where do the view counts come from?

The widget reads the view counter stored in the `_benqu_views_count` post meta.

Views are counted on single posts. Editors, bots, previews and REST requests are
not counted, and a repeat visit from the same address is ignored for 30 minutes.

### Does it work on a large site?

Yes. Counts are also kept in an indexed table, so ordering by most viewed does
 
not depend on a meta join or a filesort. The table is filled in batches when the
plugin is activated and stays in sync with the meta counter.

### What happens when I uninstall it?

Widget settings, cached lists and the index table are removed. The view counts
 
stored in post meta are kept.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Inaikas Posts Widget” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Mohammed Abdellaoui ](https://profiles.wordpress.org/inaikas/)

[Translate “Inaikas Posts Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/inaikas-posts-widget)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/inaikas-posts-widget/),
check out the [SVN repository](https://plugins.svn.wordpress.org/inaikas-posts-widget/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/inaikas-posts-widget/)
by [RSS](https://plugins.trac.wordpress.org/log/inaikas-posts-widget/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * First public release: widget and shortcode with latest, most viewed and most 
   commented lists.
 * Controls for the number of posts, posts per row, category, featured image, date
   and comment count.
 * Indexed view counter table for large sites, with an automatic fallback to post
   meta.
 * View throttling, IPv6 grouping and suggested privacy policy text.
 * Multisite activation and clean uninstall.

## Meta

 *  Version **1.0.0**
 *  Last updated **16 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [most-viewed](https://wordpress.org/plugins/tags/most-viewed/)[popular posts](https://wordpress.org/plugins/tags/popular-posts/)
   [posts](https://wordpress.org/plugins/tags/posts/)[shortcode](https://wordpress.org/plugins/tags/shortcode/)
   [widget](https://wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://wordpress.org/plugins/inaikas-posts-widget/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/inaikas-posts-widget/reviews/)

## Contributors

 *   [ Mohammed Abdellaoui ](https://profiles.wordpress.org/inaikas/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/inaikas-posts-widget/)