The last blog migration was in 2019. Now the originally purchased server expires, and the renewal price is sky high (6000+), so the server will be migrated again. Running environment The new server running environment is still organized in the form of a Docker container, but the Docker Compose.yml is changed from an existing DNMP to a Docker Compose written by yourself. Container still ……

Recently, I upgraded WordPress to 6. x, and found that the summary length of the home page article list has changed from the previously specified length to the full text of the article, which scared me to check the data overnight for modification. This article was published on the Zimiao haunting blog. Any reprint should follow the CC BY-NC-SA agreement, that is, the signature of this site, the original link of this site should be retained, and it should only be used for non-commercial or non-profit purposes. Symptom tip: WordPress has been fixed in subsequent updates ……

Someone in the group asked if I could build a Playstation game list plug-in. I spent my spare time researching the Sony interface and writing a set of plug-ins. Demo demo page of the test station: the demo page of the station has been hung: Playstation_gamelist principle The API of the PSN is not public. Someone on Github has grabbed the Playstation mobile phone ……

More than one person has talked to me about the problem of WordPress being too bloated, and I will echo "Junk WP, I use Tyecho". So, is WordPress really bloated? 1、 The first version I used was 4.0.1. Now, WordPress has been updated to 5.7. x. The search results of the search engine show that the package size of the 4.0.1 release package is 7 ……

After reading the WordPress update log, I found that the lazy loading function has been added. I was curious about how this function was implemented. After checking, I found that the browser already natively supports lazy loading of lazyload. Cause The effect of lazy loading is that this media resource will be loaded only when the window slides to this position to save network traffic. Principle of most plug-ins: add custom attributes to save the path of real media resources. When this element is visible ……

The group next door plays Redis every day, and I simply install one. The host of this blog is a Docker environment. Containers used include PHP containers, Nginx containers, MySQL containers, and the newly added Redis container. Network environment The containers required for this blog to run are all located in the same Docker bridge network. Each container can access other containers through the container name. The advantage is that the network interaction is ……

This is a plug-in that displays Steam game library in WordPress. It can display the game collection, game time and other information in the game library on the page. Features of renderings plug-in This plug-in page is developed based on Fog Forest/Team page template. The editor has modified its content and integrated it into the plug-in. The original characteristic personal information card is updated in real time. Obtained through API ……

In WordPress, you can use different page templates to create pages. In general, page templates are imported from the theme and stored in the theme folder in the form of page-xxx.php. What should I do if I want to register files from other locations as page templates? You need to write a plug-in recently to register an existing page template to the WordPress page template list. To import a page template in a traditional way, you need to import the file ……

Plug ins involve obtaining remote resources. I usually use the curl method provided by PHP, but tests have found compatibility problems with some host curls, especially in the iis+php environment. After consulting relevant materials, we found that WordPress had already encapsulated some HTTP APIs, so we replaced them. The problem was solved. Wp_remote series API wp_remote_request (s ……

The new version changes and adds paging function. Paging parameters can be set in the background. When there are enough dramas, you can browse them in pages. It is modified to AJAX update data to save traffic slightly, and avoid the problem of data immobility after using static plug-ins. All JS codes that eliminate JQuery dependencies have been replaced with native JS. Plug in effect preview (click the picture to access) Download address 2020.04.01 Add: Bangumi official plans to gradually abandon the old version of AP ……