每当我尝试通过编辑器将此搜索表单添加到首页时,我的公司 wordpress HTML 编辑器都会删除 html 表单标签。在我的本地主机上它运行良好,但我不明白为什么我的公司 WordPress 会全力以赴。
这是我尝试添加的内容:
<div id="bigSearch">
<form action="#" method="post">
<input type="text" name="keyword" placeholder="Search By Keyword...." />
<div id="statusInputs">
<select class="status" name="statusOne">
<option selected="selected">Status</option>
<option value="foreclosed">Foreclosed</option>
<option value="Mountain View">Mountain View</option>
<option value="Golf Course">Golf Course</option>
<option value="High Speed Access">High Speed Access</option>
<option value="Basement">Basement</option>
<option value="Club House">Club House</option>
<option value="Elevator Access">Elevator Access</option>
</select>
<select class="status" name="statusTwo">
<option selected="selected">Status</option>
<option value="foreclosed">Foreclosed</option>
<option value="Mountain View">Mountain View</option>
<option value="Golf Course">Golf Course</option>
<option value="High Speed Access">High Speed Access</option>
<option value="Basement">Basement</option>
<option value="Club House">Club House</option>
<option value="Elevator Access">Elevator Access</option>
</select>
<select class="status" name="statusThree">
<option selected="selected">Status</option>
<option value="foreclosed">Foreclosed</option>
<option value="Mountain View">Mountain View</option>
<option value="Golf Course">Golf Course</option>
<option value="High Speed Access">High Speed Access</option>
<option value="Basement">Basement</option>
<option value="Club House">Club House</option>
<option value="Elevator Access">Elevator Access</option>
</select>
<select class="status" name="statusFour">
<option selected="selected">Status</option>
<option value="foreclosed">Foreclosed</option>
<option value="Mountain View">Mountain View</option>
<option value="Golf Course">Golf Course</option>
<option value="High Speed Access">High Speed Access</option>
<option value="Basement">Basement</option>
<option value="Club House">Club House</option>
<option value="Elevator Access">Elevator Access</option>
</select>
<select class="status" name="statusFive">
<option selected="selected">Status</option>
<option value="foreclosed">Foreclosed</option>
<option value="Mountain View">Mountain View</option>
<option value="Golf Course">Golf Course</option>
<option value="High Speed Access">High Speed Access</option>
<option value="Basement">Basement</option>
<option value="Club House">Club House</option>
<option value="Elevator Access">Elevator Access</option>
</select>
</div>
<input type="submit" name="submitForm" value="Search" />
</form>
<p id="advanced"><a href="#">Advanced Search</a></p>
</div>
这是它在我的公司 WordPress 上吐出的东西
<div id="bigSearch">
<form action="#" method="post">
<div id="statusInputs">
Status
Foreclosed
Mountain View
Golf Course
High Speed Access
Basement
Club House
Elevator Access
Status
Foreclosed
Mountain View
Golf Course
High Speed Access
Basement
Club House
Elevator Access
Status
Foreclosed
Mountain View
Golf Course
High Speed Access
Basement
Club House
Elevator Access
Status
Foreclosed
Mountain View
Golf Course
High Speed Access
Basement
Club House
Elevator Access
Status
Foreclosed
Mountain View
Golf Course
High Speed Access
Basement
Club House
Elevator Access
</div>
</form>
<p id="advanced"><a href="#">Advanced Search</a></p>
</div>
在我试图弄清楚时的任何建议将不胜感激......