Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Mar
29
comment Get parent page/menu id of current post
Yes i've set it as the post page indeed. Should that page not be parent of any posts assigned to it ? What do you mean, use the ID of the global $post variable ? I tried it, and parent is empty.
Mar
29
comment Get parent page/menu id of current post
Even with that. $post->parent comes empty. I managed to manually get it with get_option('page_for_posts'); but that's not elegant at all