WordPress.org

Ready to get started?Download WordPress

Profiles

jeuelc

Profile picture of jeuelc
  • Member Since: February 5th, 2010
  • Posted a reply to "Link to parent page in navigation?", on the site WordPress Support Forums:
    if($post->post_parent) { $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); $titlenamer = get_the_title($post->post_parent); $parentlink = get_permalink($post->post_parent); } else { $children…

    4 years ago

  • Posted a reply to "Link to parent page in navigation?", on the site WordPress Support Forums:
    Here's what I did. if($post->post_parent) { $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); $titlenamer = get_the_title($post->post_parent); $parentlink = get_permalink($post->post_parent);…

    4 years ago