我无法在编辑器中给定样式的WordPress前端产品页面中正确显示产品描述。
下面给出的是我用来显示描述的代码。它运行良好,但不符合风格。
<?php echo stripslashes_deep($row_pro->proDescription); ?>
终于找到了解决方案。下面给出的是帮助我解决的代码。
<?php $desc = stripslashes_deep($row_pro->proDescription);
$content = apply_filters('the_content', $desc);
echo $content; ?>