The MU forums have moved to WordPress.org

Are query_posts() and get_last_updated() sitewide? (2 posts)

  1. nysb
    Member
    Posted 17 years ago #

    Hi,

    I installed WPMU and am trying to configure the site-wide "homepage". I read somewhere that in the theme "home", there is the file "home.php" that I can modify to change the site-wide homepage. I have changed the theme for the user "admin" to point to that theme, but somehow, on the front page, it shows the newest post from user "admin" only, although I also have posts from other users. Also, the "Updated Blogs" only reflects the blog belonging to "admin" as well.

    The following are the two lines of code I believe are relevant from home.php:

    query_posts('showposts=7');
    $blogs = get_last_updated();

    Could it be possible that by default query_posts() and get_last_updated() are not site-wide, instead, they are "user-wide"? Or might this be the result of some "mis-configuration"? Thanks a lot.

  2. drmike
    Member
    Posted 17 years ago #

    query_posts is blog specific.
    get_last_updated is sitewide though.

About this Topic