WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Drop down brings up error 404 (1 post)

  1. 2ctt
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic