要在wordpess中显示内容,请使用<p><?php the_content();?></p>
,但我收到验证错误:
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
我会收到同样的错误,也许有人知道解决此问题的任何解决方案都会出现验证错误?
答案 0 :(得分:0)
the_content()中已有p个元素,因此无需将其包装在p中。
我建议把它包装成div。