Paginierung mit einer Reihe von Post-Objekten?

Ich bin neugierig, ich habe folgenden Code:

foreach ($this->networkBlogs as $siteBlog) { switch_to_blog($siteBlog['blog_id']); foreach (get_posts() as $postObject) { array_push($this->blogPosts, $postObject); } } 

Was das ist, geht durch jeden der Netzwerk-Blogs, die abgerufen wird über: $this->networkBlogs = wp_get_sites();

Ich wechsle dann zu diesem Blog, bekomme alle Posts und schiebe sie alle in ein Array. Das Endergebnis ist ein Array wie (mit var_dump() ):

 array (size=15) 0 => object(WP_Post)[343] public 'ID' => int 59 public 'post_author' => string '1' (length=1) public 'post_date' => string '2015-07-02 19:50:19' (length=19) public 'post_date_gmt' => string '2015-07-02 19:50:19' (length=19) public 'post_content' => string 'Content here' (length=12) public 'post_title' => string 'Something Else' (length=14) public 'post_excerpt' => string 'Content hereContent hereContent hereContent hereContent here' (length=60) public 'post_status' => string 'publish' (length=7) public 'comment_status' => string 'open' (length=4) public 'ping_status' => string 'open' (length=4) public 'post_password' => string '' (length=0) public 'post_name' => string 'something-else' (length=14) public 'to_ping' => string '' (length=0) public 'pinged' => string '' (length=0) public 'post_modified' => string '2015-07-02 20:09:33' (length=19) public 'post_modified_gmt' => string '2015-07-02 20:09:33' (length=19) public 'post_content_filtered' => string '' (length=0) public 'post_parent' => int 0 public 'guid' => string 'http://vagrantpresssunrise.dev/wordpress/?p=59' (length=46) public 'menu_order' => int 0 public 'post_type' => string 'post' (length=4) public 'post_mime_type' => string '' (length=0) public 'comment_count' => string '0' (length=1) public 'filter' => string 'raw' (length=3) 1 => object(WP_Post)[368] public 'ID' => int 57 public 'post_author' => string '1' (length=1) public 'post_date' => string '2015-07-02 19:50:02' (length=19) public 'post_date_gmt' => string '2015-07-02 19:50:02' (length=19) public 'post_content' => string 'Post Content' (length=12) public 'post_title' => string 'Another Post' (length=12) public 'post_excerpt' => string 'Content hereContent hereContent hereContent hereContent here' (length=60) public 'post_status' => string 'publish' (length=7) public 'comment_status' => string 'open' (length=4) public 'ping_status' => string 'open' (length=4) public 'post_password' => string '' (length=0) public 'post_name' => string 'another-post' (length=12) public 'to_ping' => string '' (length=0) public 'pinged' => string '' (length=0) public 'post_modified' => string '2015-07-02 20:05:44' (length=19) public 'post_modified_gmt' => string '2015-07-02 20:05:44' (length=19) public 'post_content_filtered' => string '' (length=0) public 'post_parent' => int 0 public 'guid' => string 'http://vagrantpresssunrise.dev/wordpress/?p=57' (length=46) public 'menu_order' => int 0 public 'post_type' => string 'post' (length=4) public 'post_mime_type' => string '' (length=0) public 'comment_count' => string '0' (length=1) public 'filter' => string 'raw' (length=3) ... 

Dies ist leicht zu analysieren, Es gibt 15 Post-Objekte hier, aber meine Paginierungsregeln im Back-End von WP festgelegt nur 10 Beiträge pro Seite. Also meine Frage ist:

Kann ich die function, die ich verwende, um alle diese Posts oder dieses Array von Posts zu erhalten, in etwas umwandeln, wo ich die standardmäßigen WP-Paginierungsmethoden verwenden kann?

Solutions Collecting From Web of "Paginierung mit einer Reihe von Post-Objekten?"