Title: Loop does not behave
Last modified: August 31, 2016

---

# Loop does not behave

 *  [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/loop-does-not-behave/)
 * I am using the shortcodes in pages with parents and child
    [next_page] and [ 
   previous_page]
 * It keeps showing, on every page, the same previous page and nothing as next page.
   
   I have tried to change the order of pages in post editor (with 201, 202, 2013
   etc, it does not help. I have tried various variations of loop and get_pages,
   with of without “” (not sure if they should be there)
 * [next_page loop=expand] and [previous_page loop=expand]
    [next_page loop=cousinsloop]
   and [previous_page loop=cousinsloop] [next_page loop=cousins] and [previous_page
   loop=cousins]
 * [next_page loop=”expand”] and [previous_page loop=”expand”]
 * [previous_page get_pages_query=”sort_column=post_title&sort_order=asc”] and
    [
   next_page get_pages_query=”sort_column=post_title&sort_order=asc”] [previous_page
   get_pages_query=”sort_column=menu_order&sort_order=asc”] and [next_page get_pages_query
   =”sort_column=menu_order&sort_order=asc”]
 * Nothing seems to work…?
 * [https://wordpress.org/plugins/next-page-not-next-post/](https://wordpress.org/plugins/next-page-not-next-post/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * (@agneslesagegmailcom)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/loop-does-not-behave/#post-7457967)
 * mmm.. I found out this one works:
    [next_page loop=”expand”] and [previous_page
   loop=”expand”]
 * What was wrong is trying to use this via Visual Composer Template, that would
   mess up with post id probably.

Viewing 1 replies (of 1 total)

The topic ‘Loop does not behave’ is closed to new replies.

 * ![](https://ps.w.org/next-page-not-next-post/assets/icon-256x256.png?rev=980689)
 * [Next Page, Not Next Post](https://wordpress.org/plugins/next-page-not-next-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/next-page-not-next-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/next-page-not-next-post/)
 * [Active Topics](https://wordpress.org/support/plugin/next-page-not-next-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/next-page-not-next-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/next-page-not-next-post/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Agnes](https://wordpress.org/support/users/agneslesagegmailcom/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/loop-does-not-behave/#post-7457967)
 * Status: not resolved