The WordPress Mullet Plugin

The other morning I noticed a new WP theme called “Mullet”. Loving all things mullet, I checked out the page and some of the links on it.

I eventually arrived at Mullet Layout: A user-friendly front page and thought it’d be nice if you could just activate a plugin to get the user-friendlier mullet display of posts, instead of switching or modifying themes.

Not finding a plugin, I set out to write my first WordPress plugin. One day of frustration at The Loop (multiple loops, actually) and lots of perusing source code later, I’m pleased I can now give the whole world a mullet. Well, the WordPress world, anyway.

Download the Mullet plugin (version 0.4): 4.95kb

When you add the plugin to WordPress it’ll create a new Options sub-menu called Mullet where you can control what your list looks like, how long it is, etc. It’s pretty flexible.

Scroll to the bottom of this page (or the bottom of the my Home page to see what it does.

For more information on mullets (both hair and data related):
Wikipedia: Mullet (haircut)
Mullet Layout: A user-friendly front page
Mullet style blog layout

Version History

  • 0.4 2006-09-30 – Added ‘Page’ options and sample code (WP 2.1 Compatible, Tested 1/20/2007 on WP 2.1 RC2).
  • 0.3 2006-09-27 – Fixed html character encoding bug in titles/post names.
  • 0.2 2006-05-25 – Added date formatting option, per request.
  • 0.1 2006-05-11 – Initial (public) release.

Comments, suggestions and gratuitous praise welcome.

Join the Conversation


  1. on a side issue, how do you get your CSS formatting for the JB comments to be different to other commentors? do you use a specific plug? if you have your own code, could you post this code somewhere on your blog?
    i really like it and it helps the flow of reading.

  2. The commenting decoration is plain out-of-the-box Regulus – the nicest WP theme I’ve found. I’ve seen other WP designs I like better, but not available as themes.

  3. Hi JB,

    I’m from Turkey and I think

    I want to see my posts on only the another page. I set up the plugin and activated. I said all to “How many “previous entries” should appear on ‘Pages'” at options

  4. I haven’t tested it yet, but I got the notice about WP2.1 coming, and looked at the short list of things that might have to change in plugins to be compatible.

    The WP Mullet plugin already passes those requirements, so it should be ready for WordPress 2.1. I’ll upgrade to it as soon as it’s ready and test the plugin here for compatibility, releasing a new version if necessary.

  5. Sidebar? Sure, it’ll go in the sidebar. I just added it to the bottom of my sidebar to show the code:

    $ubm = new us_broome_mullet;

    I didn’t add any CSS or anything it… but it goes there just fine.

    Questions? πŸ™‚

  6. Noted this above as well, but here’s another mention. Mullet 0.4 is WP 2.1 Compatible, as of testing on January 20, 2007, using WP 2.1 RC 2

  7. Hi Pete,

    You didn’t give much info, so pardon if this is redundant:

    The Mullet plugin won’t automatically appear on your sidebar.
    First, the plugin has to be activated
    Second, you have to set your preferences for the number of items to appear.
    Third, you’ll have to modify your sidebar template to call the mullet code to make that content appear (there’s an example above, as well as on the Mullet’s admin page)

    Last, consider upgrading to the latest version of WordPress. Has nothing to do with the plugin… it’s just a good idea. πŸ™‚

  8. Hi Pete,

    Sounds like you’ve got the mullet preferences set to use a pre-list tag of <ol> and post-list tag of </ol>
    Those create “ordered” (numbered) lists in web pages. If you just want bullets, change them to <ul> and </ul>. If you don’t want any bullets or numbers… I guess I’d keep <ul class=”mulletlist”> and </ul> and then add ul.mulletlist{list-style:none} to your CSS.

    I think the code you posted might have gotten cut-off by wordpress when you made your comment. It should have been:
    $ubm = new us_broome_mullet;

  9. to make your plugin fully XHTML compliant (in terms of negating warnings) why dont you add functionality to detect ‘&’ in the title and modify this to ‘&’?

    [Edited by JB: That’s a clever ploy – a nicely designed, almost web-design related blog pushing ads on the other 50% of its content. So I’ll leave your comment up, but the url comes out. Anyone who wants to can google for it. Good luck with that.]

Leave a comment

Your email address will not be published.