Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 135107

Kerosity on "If Child Page > Show Parent Title > If No Parent > Show Current Title"

$
0
0

How exactly would I accomplish this in a page template?

I have a page template where there will be one parent and multiple child pages. In each of the child pages I want the parent page title to be displayed at the top.

So if the page is a child page, I want it to display the parent title (with link).

If the the page has no parent, it displays the current title.

not sure how to go about doing this.


Viewing all articles
Browse latest Browse all 135107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>