Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    It could be possible, but it would require some modifications. I don’t know how your php skills are, but you would first have to get all the ids of all the blogs and then query the correct db and merge all the data.

    Something like this (untested)

    $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
    
    foreach ( $blog_ids as $blog_id ) {
       switch_to_blog( $blog_id );
       //make the query to the correct db and merge them into a big array
    }

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You would do this in the wpsl-ajax-functions.php around line 53 where the normal query runs.

    Thread Starter kirkward

    (@kirkward)

    Thanks, that helps a lot. I did something similar with the store locator I used before, but since I have to struggle with coding I wasn’t looking forward to doing it again. This gives me a good head start.

    I hope I can find the old code, and maybe it wasn’t in the folder that got deleted. Having that and this would make things pretty simple. Then I just create a page or button to run it.

    Thread Starter kirkward

    (@kirkward)

    Oops, being a slow typist, I missed your second post whilst thinking and writing my reply. The second reply helps even more.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Importing Data’ is closed to new replies.