Made to improve the loading speed of the website, the specific function is to:
- The basic information (name, date, abstract, link, address with pictures) of the latest n articles (reverse order) under each article category;
- Basic information of all article categories (name, alias, link, description);
- Basic information of all pages (name, alias, link, summary);
- The basic information of the latest n products in the selected products (reverse order) (WooCommerce plug-in needs to be installed, name, date, summary, link, and picture address);
The above four cases are saved as JSON files in the form of objects, which are used for loading the homepage, thereby improving the loading speed of the homepage.
Note: The JSON file is stored in the root directory of the website.
为提升网站加载速度而制作,具体功能是将:
- 每个文章分类下最新的 n 篇文章(倒序)的基本信息(名称、日期、摘要、链接、配图地址);
- 所有文章分类的基本信息(名称、别名、链接、描述);
- 所有页面的基本信息(名称、别名、链接、摘要);
- 精选产品中最新的 n 个产品(倒序)的基本信息(需安装WooCommerce插件,名称、日期、摘要、链接、配图地址);
以上四种情况以对象的形式保存为JSON文件,用于首页加载使用,从而提高首页的加载速度。
注:JSON文件保存于网站的根目录之下。
Installing it is like installing any other WordPress plugin.
Dashboard method:
- Log in to your WordPress administrator, and then go to "Plugins -> Add New";
- Type "wzm json" in the search bar, then select this plug-in, and click "Install Now";
- After the installation is complete, click the "Enable" button.
安装它就像安装其他任何WordPress插件一样。
仪表板方法:
1.登录到您的WordPress管理员,然后转到“插件->添加新”;
2.在搜索栏中键入“wzm json”,然后选择此插件,点击“现在安装”;
3.等待安装完成后,点击“启用”按钮即可。