当前位置:网站首页>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 :
边栏推荐
- Snapshot management for elastic cloud enterprise
- Yupi made an AI programming nickname generator!
- [MySQL practice] binlog, a sharp tool for problem analysis
- IBM: supporting AI and enterprise digital reshaping in the cloud era with modern architecture
- Use py-mysql2pgsql to synchronize MySQL data to Greenplum
- Release! Tencent IOA and Tencent sky screen were selected into the first batch of certified products of domestic digital trusted services
- TRCT test cloud + article online speed
- Example description and case of ansible playbook automated cluster server management
- Solution to the problem that qlineedit setting qdoublevalidator setting range is invalid
- 5g brings opportunities and challenges. Are you ready to defend against DDoS?
猜你喜欢
随机推荐
Tensor and tensor network background and significance - basic knowledge
QQ domain name detection API interface sharing (with internal access automatic jump PHP code)
VBA Daniel used the nested loop
2. Leveldb design principle -- LSM
Yiwen teaches you to understand the stack operation in go
Five steps to effectively monitor network traffic
Live broadcast Preview - on April 1, I made an appointment with you to explore tcapulusdb with Tencent cloud
Why do you develop middleware when you are young? "You can choose your own way"
Use cloud development to make a login free resource navigation applet!
zblog系统如何根据用户ID获取用户相关信息的教程
Quick view of product trends in February 2021
Easycvr, an urban intelligent video monitoring image analysis platform, plays national standard equipment videos and captures unstable packets for troubleshooting
MySQL learning -- table structure of SQL test questions
Erc-20 Standard Specification
Using consistent hash algorithm in Presto to enhance the data cache locality of dynamic clusters
构建跨公链平台解决DApp开发问题
ClassNotFoundException v/s NoClassDefFoundError
Leveldb source code analysis -- writing data
Tencent cloud database mysql:sql flow restriction
[play with Tencent cloud] play with cloud database mysql

