admin管理员组文章数量:1290978
In titles of custom posts the single and double quotes are displaying as HTML - eg: the string starting with & and ending with ; - in the front end, although in the backend they are just typed as regular straight ' and ".
Not sure what is causing this. Is there any way to fix it?
Sorry if I have used the wrong terminology - not familiar with this problem.
Thanks.
In titles of custom posts the single and double quotes are displaying as HTML - eg: the string starting with & and ending with ; - in the front end, although in the backend they are just typed as regular straight ' and ".
Not sure what is causing this. Is there any way to fix it?
Sorry if I have used the wrong terminology - not familiar with this problem.
Thanks.
Share Improve this question asked Jun 16, 2021 at 11:27 KitkaKitka 1 3 |1 Answer
Reset to default 0I think your problem related to wptexturize()
function.
Description
Returns given text with transformations of quotes into smart quotes, apostrophes, dashes, ellipses, the trademark symbol, and the multiplication symbol.
Solution:
remove_filter( 'the_title' , 'wptexturize' );
本文标签: custom post typessingle and double quotes are displaying as HTMLeg amp8217 and amp8220
版权声明:本文标题:custom post types - single and double quotes are displaying as HTML - eg ’ and “ 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741499057a2381971.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
remove_filter( 'the_title' , 'wptexturize' );
– anton Commented Jun 16, 2021 at 13:27