[wp-hackers] Re: Help getting Page Title

befidled fidler.brian at gmail.com
Fri Sep 26 04:50:26 GMT 2008


Perfect! Thanks Viper!

On Sep 25, 9:40 pm, Viper007Bond <vi... at viper007bond.com> wrote:
> <?php echo get_the_title($post->post_parent); ?>
>
> On Thu, Sep 25, 2008 at 8:27 PM, Brian Fidler <fidler.br... at gmail.com>wrote:
>
>
>
> > I'm pretty sure this is a simple one...
>
> > I am using WP for a site that is pretty traditional navigation. I'm using
> > pages for the navigation and I'm using child pages to generate the
> > subnavigation within an area.
>
> > How do I get the Parent page so that I can put it above my subnav. For
> > example, in my About Us section I have 5 child pages. Each child page
> > displays the same subnav and above the subnav I want it to say "About Us".
> > I
> > tried using wp_title(''); ?> but it returns the current child page. What
> > should I use to return the current Parent page?
>
> > thanks.
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hack... at lists.automattic.com
> >http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> --
> Viper007Bond |http://www.viper007bond.com/|http://www.finalgear.com/
> _______________________________________________
> wp-hackers mailing list
> wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list