WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Splitting up the output of WP_Query

[Resolved] Splitting up the output of WP_Query

  • Okay, I’m trying to do something which splits the output of WP_Query like this:

    <div id="papa">
      <div class="kid">
       10 posts
      </div><!--- kid --->
      <div class="kid"> // yes, the same div class
       10 posts
      </div><!--- kid --->
      ....
    </div><!--- papa --->

    I first tried it with get_posts, chunk_array and two times a foreach and it worked but I want to do it with a WP_Query.

    Is there any way to this?

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Splitting up the output of WP_Query’ is closed to new replies.
Skip to toolbar