WordPress.org

Ready to get started?Download WordPress

Plugin Forums

Is Page or Ancestor

Recursively test if the page you pass into this function is the current page or ancestor of that page.

Topic Posts Last Poster Freshness
$post->ancestors was always blank, so always returned false 1 James Revillini 2 years

You must log in to post.