Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • Magnes
    Participant

    @magnes

    I created a version of BP Import Blog Activity that works with single install of WP. It’s a simple hack:
    1) Change this lines:

    $query = “SELECT * FROM {$wpdb->blogs} WHERE site_id = ‘{$wpdb->siteid}’ “;
    $blog_list = $wpdb->get_results( $query, ARRAY_A );
    foreach( $blog_list as $blog ) {
    /*if ( $blog < 12 ) continue;
    if ( $blog > 30 ) die();*/
    switch_to_blog( $blog );

    2) TO this:

    {
    $blog = 1;

    3) And change

    query_posts(‘order=ASC’);

    To:

    query_posts(‘order=ASC&posts_per_page=500’);

    Otherwise it will end after first few posts. (you can change 500 to something larger or use paging to do the job in parts if you have a very large blog)

Viewing 1 replies (of 1 total)
Skip to toolbar