Weighted Words Plugin

I’ve just completed my first-ever WordPress plugin: Weighted Words. It prints out a paragraph of the most commonly-used words in your blog posts, with the font size scaled to reflect their relative frequency.

And, dude, I’ve talked about socks more often than I’ve talked about rocks! Whoa. So, um, y’all should try it out, and link back to your lists.

Comments

  1. denisdekat wrote:

    You are so cool! I love that sort of tinkering

  2. yami wrote:

    Yay! Validation!

  3. Joe wrote:

    haha.
    “dude” would probably rank high on my list.

  4. wolfangel wrote:

    How fun! I will try it out, just, um, as soon as I get around to it.

  5. wolfangel wrote:

    I am missing something super obvious, like, how do you get this to work? I want just one of my pages to show up with it.
    (It’s probably simple and all, but it’s even SIMPLER to ask someone else!)

  6. yami wrote:

    Create a page and assign it its own special template. Then, call the function from somewhere in your template:
    <? weighted_words(30, 4, 75, 300); ?>
    I have a page template set up that I can send you if you want an example.

  7. wolfangel wrote:

    Hey, yeah, that would be very nice. While you’re sending me all the work you’ve done, do you want to show me what you did for the archivey pages? It’s remarkably easier to figure things out from example.
    Thanks.

  8. yami wrote:

    Right-o, two templates coming up - when I get home this evening.

  9. Changes have been made : a wolf angel is not a good angel wrote:

    […] page instead of on my sidebar; to my plugins, including yami’s cool weighted words plugin, which shows that I use the word things more than thing; to my sidebar, which no […]

  10. Israel Barros wrote:

    Hi,
    I’m very glad to this plug in, it’s exactely what I’ve been serching for, thanks alot. I just have e little question: It’s possible to get the words just from de post title?
    Tank you

  11. Kary wrote:

    I don’t know if you are still tinkering with or answering questions about this plugin. I’m trying to get it to work to no avail. I’ve put the code you have listed above in my sidebar and on a page template and can’t get the weighted words to appear. If it helps, I’m using Wordpress 2.0 and I’m on a Mac.
    Any help you can give would be greatly appreciated.
    BTW: I am a big noobie to PHP so “talk slowly” and use small one-syllable words, if you don’t mind.
    Thanks,
    kary

  12. yami wrote:

    Kary: Instead of <? weighted_words(30, 4, 75, 300); ?>, try <? weighted_words(5, 4, 75, 300); ?> or <? weighted_words(10, 4, 75, 300); ?>. It looks like you might not have enough stuff written for any words to show up more than 30 times. You can tweak the first parameter until the size of the word list is what you like.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*

*