Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m going to assume you mean on a per post basis … following that assumption I can gladly point you in the direction of a plugin I just released two days ago. It can be found at: https://www.blindmuse.com/archive/2004/05/24/addword-image-counts-to-wp-12/
    Hope that helps.

    Thread Starter Lizzy

    (@lizzy)

    Thanks. But if it can count words per post and it can count the number of posts, can it not somehow have a total word count?

    I’d like to get ChuckG’s version of this – just count the words in a single post – but it appears blindmuse.com has been down for a week or more. Any idea what’s up with it, if it’s coming back, and is there anywhere else to get it?

    I’ve put it here too:
    https://www.tamba2.org.uk/downloads/morecount.txt
    Don’t add any whitespace ??

    otto: sorry about the downtime; I wasn’t aware due to finals and what have you. In any case, I’ve got the site back up on a temporary basis and the files are now available on https://www.blindmuse.com for download .
    podz: thanks for that ??

    Thanks podz and chuckg both!
    you seem to have some problems with your site getting nuked now and then… is there a setting for that you could check? ??

    Hi. I really want something like this, but I never use the more function. I was wondering what it would take to convert this into a function so that every post has a X words at the bottom of it?
    Thanks,
    Cj B

    blackc2004:
    Sure, what you’re looking to do really isn’t all that hard to implement whatsoever. We can do it one of two ways: the first is for me to rewrite a second plugin with just the basic function that you are looking for, or to just tell you how to modify the current plugin to get what you need/want. I prefer the latter, so that’s what I’ll describe here.

    1. On line 31, you should see:
      $use_stylesheet = 1;
      Set that to 0.
    2. On line 101, you should see:
      add_filter('the_content', 'add_post_counts');
      Put two // in front of it. This will keep the plugin from automatically adding the counts to your more text if you *do* use it.
    3. Put this somewhere in your code to get the post counts to print:
      <?php
      $postcounts = get_post_counts("0"); // 1 to show image counts, 0 to not.
      echo $postcounts;
      ?>

    That’s it. Should work the way in which you want it to, with minimal work. Feel free to email me if you have any problems, use the contact link on my site, blindmuse.com. Hope it all goes well.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Word Count’ is closed to new replies.