WordPress MU development, I love it!

At OrangeValley, we’re currently working on migrating a large Dutch blog network over from it’s own proprietary system to a WordPress Multi User install, one of our more serious WordPress MU development projects. There’s quite a few things about WordPress MU that I like, but what I like most is, well, that’s it’s WordPress :)

For this project I needed some fairly simple things, that I could have used other plugins for but I wanted them to be simpler and cleaner than most plugins could do for me. One of those things was I needed to show an image for each post on the index and archive pages, if there was one, and wanted to be able to add a certain class to that.

So I wrote a small plugin called WordPress MU Attached Image, which does just that. It’s use is simple, you download the attached image plugin, upload it to your mu-plugins folder, and use this in the loop in your theme:

yst_thumb('class','alt text');

Or, as in my case:

yst_thumb('alignright',get_the_title());

Now this plugin will work in a normal WordPress install too, but that’s not what I wrote it for :)

Another thing I badly wanted was a plugin that would force the same permalink structure on all new blogs, and disallowed blog admins from changing them. This plugin does that, and immediately shows why I love WordPress MU development: the power it has to easily change things on tons of blogs at the same time is very cool.

It works like this: you download the fixed permalink plugin, make sure that on line 11, this reflects the permalink structure you want:

$yst_permalink_structure = '/%postname%/';

And you upload it to your mu-plugins folder. Voila: you’re now the only one who can change permalink structures, and all new blogs will automatically have the right permalink structure.

You can expect more posts on WordPress MU in the coming weeks, as I dive deeper into the system. In the mean while, if you have a WordPress MU development project you’d like us to take on, contact me!

Tags: ,


Yoast.com runs on the Genesis Framework

Genesis theme frameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides you with the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Read our Genesis review or get Genesis now!

19 Responses

  1. XIIIBy XIII on 27 May, 2009

    Thanks for the permalink plugin, I’m just running MU for a bunch of friends, but it still saves me a few headaches of having to fix their settings.

  2. Paweł ZinkiewiczBy Paweł Zinkiewicz on 28 May, 2009

    Cool, thanks for the plugins.

  3. Rich HendersonBy Rich Henderson on 28 May, 2009

    I have just started my first wpmu site you can see it here Free Blogs.

    I really love the concept and was really pleased when I noticed you were doing stuff with it as hopefully you will help me as much with wpmu as you have with the ordinary wp platform, many thanks.

  4. EddieBy Eddie on 28 May, 2009

    fixed permalink is a must have. thank you!

  5. Andrea_RBy Andrea_R on 28 May, 2009

    Ah, this is great. I can see both being quite handy. I’ll let the community know. :)

  6. elQuiqueBy elQuique on 31 May, 2009

    Thanks for plugin. Have you something to solve the DB overload on WordPress Mu ?

    We just read your DB Tips for standar WordPress.

  7. JasonBy Jason on 2 June, 2009

    Given that WordPressMU and .org versions are merging as announced at the SF Wordcamp what does this mean for such plugins?

  8. SteveBy Steve on 3 June, 2009

    Nice one. How about a yoast guide to installing MU because I give it periodic attempts and haven’t sussed it yet. Slightly above my plugin activating skill level.

  9. Tony SenaBy Tony Sena on 4 June, 2009

    We moved our social network over from PHP Fox to WP MU/BuddyPress on February 1st and have encountered a few problems. Every time a new user and blog is created, there are multiple tables created and when you have a membership base of 19K members with blogs, it causes problems. It appears our only option is splitting the databases. Can you think of any other option?

  10. grooves1200By grooves1200 on 14 June, 2009

    have you tried to integrate MU/BuddyPress with Magento yet?

  11. PrisquaBy Prisqua on 16 June, 2009

    I also have installed wp-mu too with the buddypress plugin on of my sites to have something different but can’t get it to work yet.

  12. VinceBy Vince on 16 June, 2009

    Good stuff.
    Surprised though Andrea and maybe other WPMU users aren’t aware there is already a plugin called New Blog Defaults that among many other things also has the permalink settings

  13. VinceBy Vince on 16 June, 2009

    Sorry, forgot the link to the plugin.
    Here:
    http://wordpress.org/extend/plugins/wpmu-new-blog-defaults/

  14. Mal MilliganBy Mal Milligan on 17 June, 2009

    WordPress MU is the next frontier. It’s soon to be the premier web solution for many organizations – when more of us crank out implementations and get it more visibility.

  15. fsudirectoryBy fsudirectory on 13 August, 2009

    Hey —

    Is there a way to update all permalinks for all blogs, after they are created.

    I tried using power tools and did update_option(‘permalink_structure’,’/%category%/%postname%/’); and it updated the structure… but broke links during runtime.

    They show right in the database, show right on the page, but when clicking the link I get a 404.

    any help would be appreciated.

    thx

  16. fsudirectoryBy fsudirectory on 13 August, 2009

    Just thought I would follow up (albeit quickly)

    I took this part out of your code for permalink updating

    $yst_permalink_structure = ‘/%category%/%postname%/’;
    $permalink_structure = $yst_permalink_structure;
    update_option(‘permalink_structure’, $permalink_structure );
    if (!is_object($wp_rewrite)) {
    $wp_rewrite =& new WP_Rewrite();
    }
    $wp_rewrite->set_permalink_structure($permalink_structure);
    $wp_rewrite->init();
    $wp_rewrite->flush_rules();

    and threw it into Power Tools and ran it on all of the blogs and it has seemed to done the trick to update past blogs

  17. davidBy david on 6 November, 2009

    Excuse my ignorance, but what file are you modifying change the Permalink structure?
    to $yst_permalink_structure = ‘/%category%/%postname%/’;

  18. Big Singapore TalksBy Big Singapore Talks on 26 November, 2009

    I cannot change the permalink structure to something that end with .php in wordpress MU? For example, “/%category%/%postname%.php”.

    I could do that in regular wordpress but not in MU. Any fix?

Trackbacks