Make WordPress Core

Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#12033 closed enhancement (wontfix)

Parent template tags

Reported by: angeloverona's profile Angeloverona Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Template Keywords:
Focuses: Cc:


Can you add to core template tags as:

Title and link of parent page


Maybe will be good to add also an attributes of titles "the_title()"to display title by ID

Change History (4)

#1 @nacin
14 years ago

  • Milestone changed from 3.0 to Future Release

#2 @iseulde
11 years ago

  • Keywords template tags removed

#3 @SergeyBiryukov
11 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This can be achieved by passing $post->post_parent to get_the_title() and get_permalink().

No traction in 4 years, closing.

#4 @iseulde
11 years ago

I think the reporter wanted to point out that template tags like get_the_parent_title() might be useful, with a built in check to see if there is a parent, though displaying this information would probably require additional html, so they'll have to add if ( $post->post_parent != 0 ) {} anyway.

Note: See TracTickets for help on using tickets.