• Resolved 2ctt

    (@2ctt)


    Hi,

    when using this code:

    <select name=\"page-dropdown\"
     onchange='document.location.href=this.options[this.selectedIndex].value;'>
     <option value=\"\">
    <?php echo attribute_escape(__('Select Language')); ?></option>
     <?php
      $pages = get_pages('child of=27');
      foreach ($pages as $pagg) {
          $option = '<option value=\"'.get_page_link($pagg->ID).'\">';
        $option .= $pagg->post_title;
        $option .= '</option>';
        echo $option;
      }
     ?>
    </select>

    My drop down list no longer works in 2.7. It worked fine in 2.6.5.

    It still lists the child pages but brings up a 404 messge when trying to retrieve the page and I can see no reason why.

    Help is appreciated.

  • The topic ‘Drop down brings up error 404’ is closed to new replies.