I have several pages with a parent. So, $post->post_parent should be different than 0, right?
Is returning 0.
Thing is, this is only happening in one post category. Do I need to declare that a page has a parent elsewhere? I do it from within the edit page form of that page.