Try this:
wp_list_pages(array('child_of' => $post->post_parent,'exclude' => $post->ID, 'depth' => 1))
Read the codex for more details.
Related Posts:
- How to change the case of all post titles to “Title Case”
- Dynamically add id to heading tags
- Restrict users from editing post based on the age of the post
- $post object is null
- Function to show random posts from a category
- Get post meta retrieving wrong value
- Adding a user’s ID behind the tag ref link address
- How to limit the number of results for all query_posts on mysite
- User driven content problems
- How can I create a menu items from meta box based on users input
- How *not* to show the last post on the latest posts list
- Display a custom field rating system in the front end
- Changing the post date and time with function
- Get current post id in functions.php
- get_children() Not Working with orderby Parameter
- Confirmation box when submitting post for review
- How to publish a post with empty title and empty content?
- Publish pending article from front end with a button?
- List latest posts in WP-Admin
- How to call function within a page/post, to dynamically generate content?
- Change slug with custom field
- How do I use element instead of tags in WordPress post content having webP support?
- How can I add dropdown widget/box to admin post page?
- Restrict access to post if it is currently being edited
- Getting an alphabetic post list with two letters onclick on letter
- which action to hook to in order to perform post-publish action
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Strange switch_to_blog() issue
- Human Time Diff, change mins to minutes
- How to get new post URL?
- POST from jQuery to PHP
- Force update all posts in custom post type, no content changes
- How to Display Post View Count
- Remove double space after a period
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- New Plugin Review
- Use template for posts with a particular category grandparent
- Advanced Custom Fields – Storing array value for further usage
- How to change the page break URL from ../post/2 to …/post/page2/
- str_replace the_title(); blues
- Run a function when post is deleted?
- Add icon/badge next to posttitle of specific category
- Query all posts of a custom taxonomy term
- WordPress Custom Fields (Checkboxes with multiple values)
- Exclude category from
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Can’t get buddypress notifications in front-end; why do I get this error?
- How do I display some posts fully on the homepage, and some as an excerpt only?
- Send post id through ajax and get the post content back
- Creating a post from data returned from HTML form
- Force authors to Preview a post before publishing
- Which PHP page is the Default Posts Page
- Change all author links in Blog roll
- Function works everywhere, how to keep it to execute when creating a new post
- Format latest/newest post differently
- is_page Funtion for Posts ?
- Can’t get full post title if there a spaces in title
- Isn’t the way posts are displayed very unefficient?
- restrict incrementation of post vies count when refreshing the page
- Reading settings in the home page precisely home.php
- Get post by tag
- Related Posts function not working
- the_content() Not Grabbing All Content
- saving/reading custom field value does not work – no value gets POSTed
- Dark Bar at the top of wordpress page can’t be seen?
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Have h2 tag not show up if there are no blog posts
- displaying the categories post
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- How To Use Custom Fields With .mp3 Links
- Defining ‘last’ class on foreach blog posts
- A better code for no post format?
- How to implement a WordPress comments function?
- How to add content above footer in posts from specific category
- remove specificly the last tag in all posts
- shortcode // get posts by ids
- Find most used words in post titles
- Send POST request to Flask app from functions.php file
- AJAX load more posts not using correct category and repeating the same few posts
- How to correctly escape data
- Display author bio box
- Check if user has avatar
- Run function after post is updated
- When Author add new post change default status to pending
- fire action when post is being edited as well as saved?
- Show a Category Specific Info Box
- How to get all the terms of a post
- Getting rid of the blog page entirely
- Older entries link within a category page
- Unable to get posts with category on my page
- wordpress radio button on single post page
- Create post from form with image
- Exclude a ‘portfolio’ custom category?
- Echo author slug in post edit page
- How to modify this function to exclude also the post belonging to a specific category?
- Ajax calls in wordpress
- Adding a content rating system
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new
- How to sort posts alphabetically based on a specific parent category