最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

the content - Remove pre and code tags from WordPress

programmeradmin3浏览0评论

WordPress has added both <pre> and <code> tags to my PHP embedded in a post.

Here's an example

<pre><code>register_taxonomy( 'Books', 'post',

array(
    'label' =&gt; __( 'Books' ),
) );

And here's what it should look like

register_taxonomy( 'Books', 'post',

array(
    'label' => __( 'Books' ),
) );

I know the arrow > symbol is changed by the code in my theme but the <pre> and <code> tags are added by a function within the WordPress core.

Does anybody know a filter or function which would enable me to remove these tags so the code displays correctly tags?

发布评论

评论列表(0)

  1. 暂无评论