Title: List-all Function
Last modified: August 18, 2016

---

# List-all Function

 *  [bjweber](https://wordpress.org/support/users/bjweber/)
 * (@bjweber)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/list-all-function/)
 * I am new to WordPress MU and am trying to setup an index page that lists all 
   of the blogs within my site. I am using the List-All Project from [http://wpmudev.org/project/List-All](http://wpmudev.org/project/List-All).
 * I have tried using the list_all_wpmu_blogs fucntion, but I am unable to get it
   working.
 * I am calling the function from my home.php page using:
    <?php list_all_wpmu_blogs(
   LIMIT, DISPLAY, BEGIN_WRAP, END_WRAP, ORDER); ?>
 * The error I am getting is:
 * WordPress database error: [You have an error in your SQL syntax; check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   LIMIT’ at line 1]
    SELECT blog_id, last_updated FROM wp_blogs WHERE public = ‘
   1’ LIMIT LIMIT
 * Any idea why I am getting this error? Also is there a better method to setup 
   an index page.

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/list-all-function/#post-436694)
 * I am afraid you posted in the wrong forum. For MU, please visit: [http://mu.wordpress.org/forums/](http://mu.wordpress.org/forums/)

Viewing 1 replies (of 1 total)

The topic ‘List-all Function’ is closed to new replies.

## Tags

 * [index](https://wordpress.org/support/topic-tag/index/)

 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/list-all-function/#post-436694)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
