Aloha, gentlemen coders. I’m never a programmer at all, but I’m trying hard to figure out why this code is:
if (!isset($location_result->post_parent )) { $locations_select .= '<option value="' . esc_attr($location_result->ID) . '" ' . ($location_result->ID == $l ? 'selected' : '') . '>' . $location_result->post_title . '</option>'; } else { $locations_select .= '<option value="' . esc_attr($location_result->ID) . '" ' . ($location_result->ID == $l ? 'selected' : '') . '> ' . $location_result->post_title . '</option>'; } It causes all elements of the list to move in general, even those that do not have a parent page. Question on WordPress, respectively.