• Hi,
    I wanted to add a drop down list to my wordpress post. So i put this in the text editor

    <select>
      <option value="volvo">Volvo</option>
      <option value="saab">Saab</option>
      <option value="mercedes">Mercedes</option>
      <option value="audi">Audi</option>
    </select>

    however once I switch to the visual editor and then back to the text editor, i see this,

    <select><option value="volvo">Volvo</option></select>
    <select><option value="saab">Saab</option></select>
    <select><option value="mercedes">Mercedes</option></select>
    <select><option value="audi">Audi</option></select>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    why is wordpress automatically appending select tags to each option value?

Viewing 1 replies (of 1 total)
  • Don’t switch editing tabs. That’s the fastest way to remove some (or all) of your markup. Pick a tab and stick to it.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with select tag in wordpress’ is closed to new replies.