Grab/Display Info From Random Child Site? (4 posts)

  1. justbishop
    Posted 5 years ago #

    I'd love to create a "featured" site block that chooses a random child site in the network, and grabs info about it as pictured:


    It seems easy enough to add a new field to the admin panel area user profiles, and I figured that child site admins could just enter a URL for the 125x125 image there. If the child site admin's bio info could be pulled, the value of the new profile field could be pulled as well, right?

    Anyway, is there a plugin that will do this (or is anyone interested in creating one)? I have seen a WPMU featured blog widget floating around, but I want something that automatically displays a new blog (site) each time a page refreshes, and that plugin requires the network admin to input a blog ID number to display.

  2. You could take that featured blog plugin and change the code from a manual entry to just calling a random number via PHP... Or a random number from an array of numbers, assuming you don't want ALL the blogs to be possibly featured.

  3. I'd take that featured blog widget and add a randomizer to it.

  4. justbishop
    Posted 5 years ago #

    Yeah, I figured that the existing plugin would be the place to start. I'll have to have a look at it's guts and see if it's too far above my level of expertise. I might be able to stumble my way through it :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.