admin管理员组文章数量:1023086
my site is /answers
am trying to use this code to pull the excerpt (first 33 characters of my post) <?php echo excerpt(33); ?>
but it ended up leaving an empty space.
the theme am using is using
my site is http://www.examplaza/answers
am trying to use this code to pull the excerpt (first 33 characters of my post) <?php echo excerpt(33); ?>
but it ended up leaving an empty space.
the theme am using is using
Share Improve this question edited Sep 20, 2017 at 10:43 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Sep 20, 2017 at 9:04 Exam GatewayExam Gateway 11 bronze badge1 Answer
Reset to default 3Please add below code in theme functions.php
remove_filter( 'the_excerpt', 'wpautop' );
my site is /answers
am trying to use this code to pull the excerpt (first 33 characters of my post) <?php echo excerpt(33); ?>
but it ended up leaving an empty space.
the theme am using is using
my site is http://www.examplaza/answers
am trying to use this code to pull the excerpt (first 33 characters of my post) <?php echo excerpt(33); ?>
but it ended up leaving an empty space.
the theme am using is using
Share Improve this question edited Sep 20, 2017 at 10:43 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Sep 20, 2017 at 9:04 Exam GatewayExam Gateway 11 bronze badge1 Answer
Reset to default 3Please add below code in theme functions.php
remove_filter( 'the_excerpt', 'wpautop' );
本文标签: how to get excerpt without p html tag from wordpress post
版权声明:本文标题:how to get excerpt without p html tag from wordpress post 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745591495a2157914.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论