我当时正在研究WordPress中的新主题,并且花了大量时间使用get_the_content()函数。
<div class="clearfix">
<div>
<p><?=get_the_content();?></p>
</div>
</div>
它似乎不能处理快捷方式,也不能处理段落。
然后我将其替换为the_content();,我的段落和快捷方式开始工作。
<div class="clearfix">
<div>
<p><?=the_content();?></p>
</div>
</div>
我的问题是:与get_the_content();相比,这些函数之间有什么区别,the_content();有哪些额外处理?
https://stackoverflow.com/questions/50892776
复制相似问题