[wp-trac] [WordPress Trac] #10350: post_parent returns 0 even when post is revised to give a parent
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 7 11:59:06 UTC 2009
#10350: post_parent returns 0 even when post is revised to give a parent
--------------------------+-------------------------------------------------
Reporter: petethebloke | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Unassigned
Component: General | Version: 2.8
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
I've added <?php echo $post->post_parent; ?> to a page and it shows 0 when
on homepage (as expected). It shows 14 when on a subpage of 14, but on a
different sub-page of 14 it shows 0. It seems it's getting the original
parent before the page was revised to be a subpage of 14.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10350>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list