Created
December 9, 2015 15:33
-
-
Save JRGGRoberto/a1c54b0df75ea4f6e232 to your computer and use it in GitHub Desktop.
Titulo com patch by parent page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h1 class="header-post-title-class entry-title"> | |
| <?php | |
| $parent_title = get_the_title($post->post_parent); | |
| $ancestors = get_post_ancestors($post); | |
| for ($i = (count($ancestors)-1); $i >= 0; $i--) { | |
| $res = $ancestors[$i]; | |
| echo "<a href=\"" .get_page_link($res) ."\"a>"; | |
| echo get_the_title($res); | |
| echo "</a> -> "; | |
| } | |
| echo spacious_header_title(); | |
| ?> | |
| </h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment