This will get you the parent page ID:
$post->post_parent
..and this will get that parent page’s children:
get_children($post->post_parent);
By default that will return an object. You can then play about with that object to your heart’s content, including making a navigation of sorts.
Something like this to get started:
<ul>
<li class="heading"><?php get_title($post->post_parent); ?></li>
<?php
$children = get_children($post->post_parent);
foreach($children as $c) {
echo '<li>'.get_title($c->ID).'</li>';
};
?>
</ul>
Related Posts:
- Paged posts – how to use numbers and next/previous links?
- Why do you need an unlikely integer in paginating?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- How can I see all of a post’s comments on a single page as a reader, if pagination is enabled?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- posts_per_page & pagination conflict
- Pagination is not working wp_query custom fields values
- Passing custom args in paginate_links
- wordpress Static Page pagination
- Move pagination numbers above plug-ins
- Pagination that includes “view all on one page”
- How to use pre_get_posts?
- Possible to paginate on single.php?
- I want to change the media list with additionally query
- Content only on last page, if the page has pagination
- How to let crawlers search paginated comments?
- In pagination, change link for page 1 to homepage
- WordPress API returns empty page when page is less than X-WP-TotalPages
- Display only the current page number and another numbered page in pagination
- How can I paginate image attachments in a post?
- Pagination shows same contents all pages
- How to test pagination? [closed]
- Link to previous month’s posts
- Pagination for multiple queries for different authors on author.php
- Paginate Pages by only showing 3 pages at most
- How to get “last year from [spec year] that has posts”?
- Pagination url canonical problem
- WordPress loading index page instead of archive.php
- How can I paginate a list of related posts?
- tag.php pagination and query_posts()
- Is it possible to have pagination with an offset loop?
- Add icons in paginate_links()
- How can I use var php with javascript to build custom page? [closed]
- WordPress single page template, custom post type, pagination orderby title – alphabetical order
- How to use pagination on costum post type
- Single Page Views and Pagination View Depending on URL Query
- Category lists page foreach Paging
- Archive pagination not working
- Issue on single.php pagination WordPress
- Using Ajax in the prev_posts_link and next_posts_link
- Adding range to wp_link_pages()
- How to set up pagination [closed]
- WordPress triggers 404 on page 2 for custom search query
- Search page pagination does not work
- Pagination 404s on custom query
- Customise wp_List_pages to output a UL LI
- How to implement a slideshow on WP similar to these examples?
- Custom wp_link_pages for paginated posts | Next page randomly
- Pagination in home page for a custom loop loads same content
- Pagination not working with custom post type
- Displaying the author of next and previous posts in pagination?
- How to ignore pagebreaks for RSS feed?
- Pagination For Table Rows on a page?
- Universal CPT archive template and half working pagination
- Custom admin page pagination permissions error
- Problem with older entries in homepage
- remove $_GET-parameter from WP_List_Table::tablenav
- WP Page Navi. 404 error when using posts per page parameter [duplicate]
- Pagination for previous page/next page (with more than one post/page)
- Error 404 on pagination on homepage
- Pagination Adding Numbers in Strange Fashion
- Pagination for custom post types
- Pagination in author, category, archive and tags pages does not work
- WordPress pagination with wp_query_columns
- How can I paginate results from get_children
- Setting up Pagination with twentytwelve_content_nav
- Why can i add /page/674874 (or any number) to a URL and it still pulls up that page?
- WordPress blog pagination not working
- How to add numbers pagination to this blog page?
- how can I do numeric pagination?
- Why next_posts(); function does not work inside header.php?
- empty pages on pagination with meta query
- I would like to fix a problem with post pagination: i can only see the url title (prev – next) but title is truncated
- Override the WordPress default pagination markup
- Pagination with Metaboxes or Custom Fields
- How To Get ‘Custom SEO Titles’ For Each Paginated WordPress Page?
- 2 Columns with Independent Pagination
- Prevent WordPress to remove query vars from url
- Google Indexed sub pages in wordpress pagination in post
- Pagination reloads first page but has proper url
- Paginate Links function: Page 1 doesn’t work
- How to display most viewed posts without any plugins
- Paginating custom posts in categories yields a 404 error
- Split a long form into multiple pages
- Pagination and Custom Search page
- Pagination options using xml data instead of database?
- pagenavi shows a lot of pages calculated from all posts in the site with query_posts
- How to devide post into more than one page using ?
- Infinite scroll repeats posts in custom loop in single.php
- One post on frontpage and an archive page
- URL rewrite breaking pagination
- Pagination for custom post type not working [duplicate]
- Blog Page pagination not working, loads Page 1 each time [duplicate]
- The pagination doesn’t work
- Media library only show 2 items per page?
- Pagination Error – Same Posts Displaying Over Again
- Pagination Broken on Loop using ACF
- Custom Post Type Pagination For Genesis Child Theme [closed]
- Modifying previous_posts link to use AJAX