0
要顯示wordpess我用<p><?php the_content();?></p>
內容,但我得到驗證錯誤:WordPress的the_content()驗證錯誤
Line 94, Column 3: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<p>For companies that are willing to minimize their accounting costs or jus bar…
如果我改變p
到span
我得到同樣的錯誤,也許有人知道的任何解決方案來解決這個prolbem驗證錯誤?
好的,不是壞的解決方案;) –
正如@Klevis所說 - 默認情況下,the_content()運行wpautop,它將位置段落標記放置在需要的位置。除非需要表示,否則可以輸出'<?php the_content(); />' –