Skip to main content
2 of 3
added 101 characters in body
metalzade
  • 117
  • 1
  • 2
  • 5

How to get the post's parent ID?

I have a template which outputs the blog posts (Blog Page), I open one of the posts which use single.php template, Now how can I get the ID of it's parent which is the Blog Page?

I should say that I want to use this ID to get the meta box value of the blog page in single.php.

metalzade
  • 117
  • 1
  • 2
  • 5