Wordpress the_content()验证错误

时间:2012-12-27 11:47:38

标签: wordpress validation

要在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我会收到同样的错误,也许有人知道解决此问题的任何解决方案都会出现验证错误?

1 个答案:

答案 0 :(得分:0)

the_content()中已有p个元素,因此无需将其包装在p中。

我建议把它包装成div。