Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 33a3ee70d74fa9fb271d097bc50c39102335cde0 1 parent 153360e
@marpa authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.