【发布时间】:2010-12-15 19:16:22
【问题描述】:
我想从wordpress菜单上的wp_list_pages()函数中删除自动a href链接,但我不想从子菜单中删除href,只能从顶部菜单中删除
例如:
<li><a href="www.games.co.il">Games-not remove thr href</a>
<ul>
<li><a href="www.x4.co.il">Menu0-remove the auto href</li>
<ul>
<li><a href="www.x1.co.il">sub-menu 1-do not remove the auto href</a></li>
<ul>
<li><a href="www.ddd.co.il">**not** remove the href</li>
</ul>
<li><a href="www.x1.co.il">sub-menu 2 not-remove the auto href</li>
</ul>
</ul>
</li>
【问题讨论】:
-
假设涉及下拉菜单:不要再这样了。这意味着该链接在单击鼠标中键且 JavaScript 不可用时仍然有效。
标签: php wordpress list function wp-list-categories