Skip to content
Browse files

change title of inline page listing to be title of post parent

  • Loading branch information...
1 parent 153360e commit 33a3ee70d74fa9fb271d097bc50c39102335cde0 @marpa committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions.php
View
4 functions.php
@@ -872,10 +872,10 @@ function translucence_admin_header_style() {
function translucence_page_links($post, $order) {
if ($post->post_parent) {
- $children = wp_list_pages("title_li=<h3>Related Pages </h3>&child_of=".$post->post_parent."&echo=0");
+ $children = wp_list_pages("title_li=<h3>".get_the_title($post->post_parent)."</h3>&child_of=".$post->post_parent."&echo=0");
$num_children = get_pages("child_of=".$post->post_parent);
} else {
- $children = wp_list_pages("title_li=<h3>Sub Pages</h2>&child_of=".$post->ID."&echo=0");
+ $children = wp_list_pages("title_li=<h3>".get_the_title($post->post_parent)."</h3>&child_of=".$post->ID."&echo=0");
$num_children = get_pages("child_of=".$post->ID);
}

0 comments on commit 33a3ee7

Please sign in to comment.
Something went wrong with that request. Please try again.