国内WP站极端后台加速法 2021年4月7日 by Aloysius Luo WordPress开发 客户网站在中国大陆,迭代几轮并引入若干新插件后,后台性能急剧下降,后台风吹草动,前台页面立刻纹丝不动。 Query Monitor显示出站HTTP API CALLS,意料中的api.wordpress.org,my.elementor.com至少能返回HTTP ...
wordpress教程:给博客最新文章添加new标记 2021年4月7日 by Aloysius Luo WordPress开发 在index.php里找到包含的地方,在后面加上如下代码: <?php $t1=$post->post_date; $t2=date(“Y-m-d H:i:s”); $diff=(strtotime($t2)-strtotime($t1))/3600; if($diff<24){echo ”<img src=’http:// ...