---
title: Widget Context Update -- Word Count Check
date: 2009-03-17T22:14:49+00:00
modified: 2012-08-23T10:20:23+00:00
permalink: https://kaspars.net/blog/widget-context-update-word-count-check
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
post_tag:
  - Plugin
post_format:
  - Aside
category:
  - WordPress
---

# Widget Context Update — Word Count Check

[Jeff said](http://www.wptavern.com/custom-widgets-20-released) he might switch, so I *had* to update the [Widget Context](https://kaspars.net/blog/projects-services/wordpress-plugins/widget-context/) plugin to fix the problem of widget settings not being when adding the widget for the first time, and added a new feature which enables you to show or hide a widget if the blog post has more or less then certain number of words.

*Please note* the new feature that checks for a word count in a post works perfectly only on single post view (when the full article is displayed) and makes only an estimate when paginated archive or index page is being viewed. The reason for this is that your theme can alter the ‘typical’ number of words that archive pages should display, which is everything above the `\<!--more-->` tag.