• I’m trying to use the shortcodes. When I add them to the first or last page in a hierarchy, they don’t work. They either link back to the main page (home) or are deleted and show up as a blank space. This happens for parent pages into a child page and from a child page to the next level parent page.

    So:
    – p1
    — c1
    — c2
    — c3
    – p2

    p1’s next_page ends up being a link to the index of the wp install, as does c3’s. Previous_page for c1 is deleted/just does not display.

    WordPress 4.2.5 using theme Twenty Fifteen.

    https://www.ads-software.com/plugins/next-page-not-next-post/

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s not documented but try

    [previous_page loop=expand]

    The plugin stills relies on menu order. The WordPress function it uses only offers ‘post_title’, ‘menu_order’, ‘post_date’, ‘post_modified’, ‘ID’, ‘post_author’, and ‘post_name’ (slug). So even though a child page may be listed in admin under its parent, it has a menu order of zero by default.

    So setting each page’s menu order will better reflect how it’s sorted in admin. A plugin like Intuitive Custom Post Order will make that easier.

    Agnes

    (@agneslesagegmailcom)

    I also have paent and child pages, and the loop gives me unpredicatble results., even with “expand”.
    I guess I could try changin post order to some logic, but I don’t get which one…
    Any hint?

    This demonstrates the looping options:
    https://demos.wpmission.com/next-page-not-next-post/

    Agnes

    (@agneslesagegmailcom)

    Thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working when moving up or down in hierarchy’ is closed to new replies.