当前位置:网站首页>A solution to the problem that the separator of WordPress title - is escaped as -
A solution to the problem that the separator of WordPress title - is escaped as -
2022-06-24 17:26:00 【Ashi】
Recently, many users have given me feedback that they are using WordPress When the subject is , stay SEO The separator in the setting is customized to English special character horizontal bar "-" after , Will be taken as HTML character &#8211
The reason is that it's all WordPress Too thoughtful pot , By default , It will call the function wptexturize To perform this transformation .
terms of settlement 1: Stop using wptexturize Escape any character
add_filter( 'run_wptexturize', '__return_false' );
terms of settlement 2: call remove_filter Function to remove the wptexturize Call to
remove_filter('the_title', 'wptexturize');The above solutions , Choose one , that will do . Insert code into functions.php At the bottom of the file .
If you use nicetheme The theme , Please insert the code into the topic Directory functions_xxxx.php In file .ps:xxx For the title of the subject , such as pandapro The theme , namely functions_pandapro.php file .
Here's the picture :
边栏推荐
- Sigai intelligent container damage identification products are deployed in Rizhao Port and Yingkou Port
- Go collaboration and pipeline to realize asynchronous batch consumption scheduling task
- [play with Tencent cloud] check 9 popular Tencent cloud products
- 跟着Vam一起学习Typescript(第一期)
- Quickly build MySQL million level test data
- Cloud MySQL importing cloud data warehouse PostgreSQL best practices
- Solutions for RTSP video streaming played by several browsers
- Setting the Arduino environment for tinyml experiments
- Explore cloudera manager management software tuning (1)
- Construction scheme of campus network clock system (standardized examination room)
猜你喜欢
随机推荐
跟着Vam一起学习Typescript(第一期)
C language | logical operators
Example description and case of ansible playbook automated cluster server management
When the game meets NFT, is it "chicken ribs" or "chicken legs"?
About with admin option and with grant option
Ramda's little-known side
TRCT test cloud + article online speed
C4D learning notes
Zblog system realizes the tutorial of the number of articles published on the same day when the foreground calls
Complete the log service CLS questionnaire in 1 minute and receive the Tencent cloud 30 yuan threshold free voucher ~
zblog判断某个插件是否安装启用的内置函数代码
Industrial security experts talk about how to guarantee the safety of data elements in the rapid development of digital economy?
Quick view of product trends in February 2021
Learn typescript with VAM (phase 1)
Development analysis of main chain system
Operation and maintenance guide | cos back source setting practice
Industrial security experts talk about DDoS countermeasures from the perspective of attack and defense
03. Tencent cloud IOT device side learning -- overview of mqtt control package
Advanced anti DDoS IP solutions and which applications are suitable for use
Customizing security groups using BPF

