WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 8 years ago

Last modified 8 years ago

#12033 closed enhancement (wontfix)

Parent template tags

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

Description

Can you add to core template tags as:

Title and link of parent page

parent-page-title
parent-page-permalink

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

Change History (4)

#1 @nacin
12 years ago

  • Milestone changed from 3.0 to Future Release

#2 @iseulde
8 years ago

  • Keywords template tags removed

#3 @SergeyBiryukov
8 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
8 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.