has_post_parent


has_post_parent ( $post = null )

Parameters:
  • (int|WP_Post|null) post Optional. Post ID or WP_Post object. Default is global $post.
Returns:
  • (bool) Whether the post has a parent post.
Defined at:

Description

Returns whether the given post has a parent post.

Related Functions

get_post_parent, has_post_format, add_posts_page, wp_get_post_parent_id, add_post_meta

Top Google Results

User discussions

wpseek mobile