Make WordPress Core

Opened 17 years ago

Closed 13 years ago

Last modified 13 years ago

#12033 closed enhancement (wontfix)

Parent template tags

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

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
17 years ago

  • Milestone 3.0 → Future Release

#2 @iseulde
13 years ago

  • Keywords template tags removed

#3 @SergeyBiryukov
13 years ago

  • Milestone Future Release
  • Resolution → wontfix
  • Status new → 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
13 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.