• I’ve been searching all over for a plugin that counts the number of words in one post and displays it. I’ve tried several but they haven’t seemed to work. Can someone please give me a link to download one that I can use?

    For an example of an exact plugin, I want one that functions like Nuclear Moose’s Site.

    Thanks

Viewing 15 replies - 1 through 15 (of 20 total)
  • I’ve looked too ….. I give up ??

    (I’ve mailed him though, so he’ll be here soon!)

    /*
    Plugin Name: Words Per Post
    Plugin URI: https://www.false-hopes.com/
    Description: Shows the number of words total, on a per post basis, or thispost out of total. Uses post_word_count(), total_word_count(), and out_of_count()
    Version: 0.5
    Author: Robert Deaton
    Author URI: https://www.false-hopes.com
    */

    I am not aware if Robert is still supporting or upgrading this plugin. I seem to recall from a #wordpress IRC chat that he was surprised that I was still using it. However, it works just fine.

    https://blog.nuclearmoose.ca/wp-docs/wordcount.phps will be where you can find the PHP source if Robert doesn’t have an archived or more recent version.

    Thread Starter skankybeans

    (@skankybeans)

    What is the tag that we use for that? I only know the basics of PHP and that’s about it, so please excuse me if I sound like a noob.

    Thanks

    <?php post_word_count(); ?>

    <?php total_word_count(); ?>

    <?php out_of_count(); ?>

    Thread Starter skankybeans

    (@skankybeans)

    I’m still getting an error, though. I’m not sure why either because I thought that was the correct tag but wasn’t sure because of the error.

    What is the error ?
    Plugin activated ?

    Thread Starter skankybeans

    (@skankybeans)

    Here is the error:

    Parse error: parse error, unexpected T_VARIABLE in /home/projecte/public_html/wp-content/plugins/wordcount.php on line 11

    Thread Starter skankybeans

    (@skankybeans)

    That is what I activate it. At that point, I haven’t even put the tag in the index.php page. Any advice?

    Post the code you are using to https://paste.uni.cc so we can have a look at exactly what you have.

    Thread Starter skankybeans

    (@skankybeans)

    Here is the link to the code for the wordcount.php plugin:
    https://paste.uni.cc/6619

    Thread Starter skankybeans

    (@skankybeans)

    Here is the link to the index.php page, which would normally host the tag for the plugin:
    https://paste.uni.cc/6621

    It could be that this plugin is simply not compatible with the version of WordPress that you are using. Maybe sneak by Robert’s site and see if he has been working on it or perhaps you can post a comment and get him to update it. I can’t see anything wrong with the plugin code itself. However, I’m not using the same version of WordPress as are you.

    Thread Starter skankybeans

    (@skankybeans)

    What version are you using? 1.2.2? Is so, is updating to that a big pain in the ass or is it easy?

    Thanks

    This is working fine on my site, but when I try to login to my admin area I get several errors like this each referring to different lines.

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/wordcount.php:22) in /wp-login.php on line 42

    Has anyone else had this problem? If so, any fixes?

    Thanks

    ^ Make sure there are no spaces in between <?php and ?>

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Post Word Count Plugin?’ is closed to new replies.