• Resolved DesignLoud

    (@designloud)


    Warning: Cannot modify header information – headers already sent by (output started at /nfs/c08/h04/mnt/123498/domains/murrayconstructionco.com/html/wp-content/themes/murrayconst/functions.php:132) in /nfs/c08/h04/mnt/123498/domains/murrayconstructionco.com/html/wp-includes/pluggable.php on line 881

    Domain: murrayconstructionco.com/about-us/

    I have a feeling this is due to me re-routing this parent menu item to the first child.. Here is what I am using for that

    /*
    Template Name: Redirect To First Child
    */
    if (have_posts()) {
      while (have_posts()) {
        the_post();
        $pagekids = get_pages("child_of=".$post->ID."&sort_column=menu_order");
        $secondchild = $pagekids[0];
        wp_redirect(get_permalink($secondchild->ID));
      }
    }

    Please help.. ??

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HELP _ WEBSITE WARNING (Headers already sent?)’ is closed to new replies.