'next', 'before' => '
  • ', 'after' => '
  • ', 'nextpagelink' => __( 'Next page →', 'flat-bootstrap' ), 'previouspagelink' => __( '← Previous page', 'flat-bootstrap' ), 'echo' => false ) ); if ( $link_pages ) echo ''; /* * For sub-pages, display links to previous and next sibling */ if ( $post->ID != $post->post_parent AND $post->post_parent != 0 AND get_page_template_slug( $post->post_parent ) == 'page-fullwithsubpages.php' AND ! is_page_template( 'page-fullwithsubpages.php' ) ) { $args = array( 'parent' => $post->post_parent, 'hierarchical' => null, 'sort_column' => 'menu_order', ); $pagelist = get_pages( $args ); $pages = array(); foreach ($pagelist as $page) { $pages[] += $page->ID; } $current = array_search(get_the_ID(), $pages); $prevID = $current > 0 ? $pages[$current-1] : null; $nextID = $current < ( count( $pages ) - 1 ) ? $pages[$current+1] : null; if ( ! empty( $prevID ) OR ! empty ( $nextID ) ) { ?>