Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rbryant4

    (@rbryant4)

    I figured it out-FINALLY. Apparently I needed to add:

    ‘posts_per_page’=> -1

    to my WP_Query() arg list. The default–which I still don’t know where it’s set–was apparently 10. This overrides it.

    Everything is working again!

    Thread Starter rbryant4

    (@rbryant4)

    To illustrate:

    I have 9 example pages that WP_Query returns on ‘post_type’ => ‘page’

    CURRENT
    Site Pages
    (9) pages total
    ——-
    Page 9
    Page 8
    Page…
    Page 2
    Page 1
    END LIST

    AFTER ADDING
    one new page
    (10) pages total
    ——-
    START RETURNED LIST
    Page 10
    Page 9
    Page…
    Page 2
    Page 1
    END LIST

    AFTER ADDING
    2 new pages
    (11)
    ——-
    START RETURNED LIST
    Page 11
    Page 10
    Page…
    Page 3
    Page 2
    END LIST

Viewing 2 replies - 1 through 2 (of 2 total)