You can get the parent with wp_get_post_parent_id(get_the_ID()), and store it in a new variable and do the same with the children and then just showcase them in any format you want.
<?php
$theParent = wp_get_post_parent_id(get_the_ID());
if ( $theParent->ID == 83 ) { ?>
<div class="parent"><?PHP echo get_the_title($theParent); ?></div>
<ul class="children"><?PHP wp_list_pages(array(
'title_li' => '',
'child_of' => $theParent ?> </ul>
<?PHP } ?>
Hopefully, this helps
Related Posts:
- How does wordpress calculate the page depth?
- Check whether the child page has siblings
- How to echo excerpts with wp_list_pages?
- Extra title output with this function wp_list_pages
- List child pages by slug not ID?
- Combining ‘depth’ with ‘include’ in wp_list_pages()
- Get the ID of the direct parent page
- Get parent of current page
- Post Fetching Ignoring Sort_Column?
- Exclude pages by menu order
- Change page name in admin list
- Check if the child page has sibling pages, and bookmark current page
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Check if page has subpages
- How should I set up a Tumblr blog at a WordPress Page?
- Translate dashboard metabox
- wp_list_pages get the hole hierarchy for current page
- Remove and change pages label
- Get All Pages as strings in array
- How To List Sibling Pages And Include The Featured Image?
- How to make in post Parent page children page list nummbered
- Custom wp_list_pages() function
- Check if is on child-page of a particular page
- Restrict admin access to certain pages for certain users
- Require title for pages
- How do I modify this page template to show subpage excerpts (not post excerpts)?
- How do I load custom scripts and styles for a page?
- What are the options for running custom css and javascript files on a page?
- How to build a post and comment editing form in a page?
- Wrong Sub-Page Order
- WP won’t save changes in post (any)
- can i create 2 blog ‘feeds’ within one blog
- Password Protected Page Not Displaying Content After Entering Password
- Created pages not showing up in ‘All Pages’ list
- I made a custom page but WordPress seems to strip any HTML I put in this page
- How to exclude shortcode from specific page IDs if it’s set to global
- Is it possible to have a landing page based on the visitors location?
- Play Video on Homepage Only
- Remove number in URL
- Dynamically change page that loads
- Page title not showing up
- How to add Posts to a Page
- Proper way to implement/access a built-in page in my theme
- remove/hide pages from users backend
- Page not found error when adding text `2 = 2 ^ 1` to the page
- Related Links Page with moderated, user suggested link submissions
- If a page does not exist, include a different page?
- How to redirect a page to another?
- Adding Author and Updated Schema Markup to WordPress Static Pages
- Trying to Edit a Page but it sends me to a Product Edit page
- Get the ‘Content Permission’ roles as defined in a page
- Pages are hashed as of today
- Dynamic Landing Page
- Creating a dashboard menu page similar to the “Pages” page
- What is a subpage in WordPress?
- Get $post Object from another page
- Google Page Speed Insights not recognising WP-Cofig settings?
- Create page template with some static contents
- Can I schedule my site to launch at a set time and date?
- Avoid pages losing template association on site re-deploy
- get_permalink not fetching correct pages
- Using page-something.php as static front page
- wp_list_pages Hierarchical Help
- Query pages based on tags
- How do I centre all page titles site wide without centring post titles or site title?
- create 2 custom columns in page edit in Admin panel
- Having a series of pages created based on records in a table with fields populating the pages
- Authors posts on a author created page
- Hide links to pages that dont have any content
- custom page templating in WordPress
- WordPress – Retrieve a Page if it’s a direct descendant of another Page
- After creating a new page, filling the page with structure
- Page Slug Won’t Change – Can’t Edit Archive Page With Slug or Reassign Slug
- When I enter password, I’m redirected to the WordPress login form
- How do I add a new item to this menu on the Add New Page section?
- Return true if parent page id matches
- Not allow add New Page for role ‘editor’
- How to detect if some page template has been selected
- Why Google map can not show full size in a page?
- Page view displays not properly after update wordpress
- What’s the best way to manage sections on a page?
- How do you assign custom template for Posts page (under Front page displays setting)
- Display custom_post_type with current taxonmy of a page
- Prevent page from displaying
- Adding CSS styles to Admin Area PAGES only (not POSTS or CPT)
- 1st Level Page with No Children
- Loading custom jQuery and HTML in a WordPress page
- Add feed to a custom page
- Directory location of new page
- Grabbing the_content from “about us”
- Get current post’s child page?
- Page specific values in widgets
- Woocommerce – Making product pages child of shop
- link a custom page into menu
- Show different number of posts on second page of category
- Use get_posts() with ‘post’ and ‘page’ queries at the same time?
- appearance of new page
- How to read a page’s “Shortcodes” from the Template File?
- How can a user login on a wordpress page?
- For some reason my posts are not showing up on my front page [closed]