The MU forums have moved to WordPress.org

How to display a manual selection of blogs on wpmu homepage (6 posts)

  1. Alxe
    Member
    Posted 15 years ago #

    Hello,

    I'm looking for a way to customize the WPMU homepage. I would like the WPMU admin to be able to :

    - select the blog ("Blog 1, blog 5, blog 9") he wants to display on the WPMU homepage (this would display only the blog title, maiyber the description, in a section called "Featured Blogs"). It seems that WPMU allows only loops on the last updated blogs or the last published posts, but you can't manually select the blogs to display.

    - if this is possible, instead of the blog titles, I would like to display a picture of the blog (but I should be able to do it on my own if I find a way to solve the first problem)

    I've been looking quite a long time for this, and though it looks like a simple problem, I didn't manage to find a solution to do it.

    Thanks for your ideas !

    Alxe.

  2. andrea_r
    Moderator
    Posted 15 years ago #

    So.... you want to be able to do this from the backend or what?

    Because if you're going to edit the theme and you know the blogs you want to list, and they're never going to change, then hardcode a link.

    Otherwise, you're going to have to get way more specific in terms of how you expect it to function, rather than how you want it to look.

  3. Alxe
    Member
    Posted 15 years ago #

    Yes, I would like to do this from the backend, the admin is not supposed to know anything in html.

  4. Alxe
    Member
    Posted 15 years ago #

    (and the admin will have to update the blog list every month or so ... so I can't hardcode the list in the home.php file)

  5. DeannaS
    Member
    Posted 15 years ago #

    It wouldn't be that hard to write a plugin to do that. You could hook into the blog edit page on the back end to add a block that lets the admin select which blogs to display and then just have a theme that uses that info to display the ones you want. It'd be most efficient if you create a new table in the database to store that info. Then, you can just do some joins to get the blog's name and URL.

  6. Alxe
    Member
    Posted 15 years ago #

    OK! I never wrote a plugin in my life, but I guess I should start now ;-). Thanks for giving me these background informations on how to proceed, it should help!

About this Topic