So, I've got a client that requires all of the groups using their blog to become shown on their home page. The WordPress blog is within its very own directory, /blog. I've attempted the next code (obtained from a tutorial, I transformed the road to fit clients site):

<?php
    // Include WordPress 
    define('WP_USE_THEMES', false);
    require('blog/wp-load.php');
    query_posts('showposts=1');
?>

But this code just redirects me towards the install file of WordPress (it really wrongly redirects me). It is going to http://www.site.com/wp-admin/install.php rather than http://www.site.com/blog/wp-admin/install.php.

It is possible to better way than this process? I'd pull within the groups in the database table, but I don't presently connect.

Thanks!

Client is applying a strange Content management systems which i just needed to get to know. Also, I incorporated wp-blog-header.php rather.