将the_content()中的元素替换为wp_title()


Replace an element in the_content() with wp_title()

我需要将the_content()中的一个元素替换为wp_title()

编辑:以下数据存储在_content()函数中。这是一个显示帖子内容的wordpress函数。

下面是the_content()

的例子
</h2>
<ol>
<li>element_1</li>

我想让它:

</h2>
<ol>
<li>wp_title()</li>
<li>element_1</li>

直接修改

</h2>
<ol>
    <li>wp_title()</li>
    <li>element_1</li>

</h2>
<ol>
    <li><?php wp_title(); ?></li>
    <li>element_1</li>

,你应该很好。