The MU forums have moved to WordPress.org

Creating a list of latest updated blogs (2 posts)

  1. Farms
    Member
    Posted 18 years ago #

    Hiya,

    I'd like to create a list of latest updated blogs on the front page. I'm calling get_last_updated from wp-includes/wpmu-functions.php but getting an error.

    This is with the latest nightly.

    Here's the code I'm using:

    '$lastupdated = get_last_updated();
    print "<h3>Most recently updated</h3><br><br>
    ".$lastupdated."
    ";'

    And here's the error:

    "WordPress database error: [Table 'lndblogs_wpmu.wp__options' doesn't exist]
    SELECT option_value FROM wp__options WHERE option_name = 'is_archived'

    WordPress database error: [Table 'lndblogs_wpmu.wp__options' doesn't exist]
    SELECT option_value FROM wp__options WHERE option_name = 'is_archived'

    WordPress database error: [Table 'lndblogs_wpmu.wp__options' doesn't exist]
    SELECT option_value FROM wp__options WHERE option_name = 'is_archived'
    Most recently updated

    Array"

    Any help would be hugely appreciated, I've been banging my head against a wall about this for weeks now.

    Cheers, James

  2. pritamdutt
    Member
    Posted 18 years ago #

    Please note in Wordpress all the tables contain the following format in your case.
    [Table 'lndblogs_wpmu.wp_<blog id>_options' doesn't exist]

    Please supply the blog id and it should solve the problem.

About this Topic

  • Started 18 years ago by Farms
  • Latest reply from pritamdutt