如果您已经安装了WordPress插件,请尝试使用导出为HTML功能。一旦您解压缩zip文件,将slider.html重命名为slider.php,并在任何页面中包含它。 <?php include 'slider.php'; ?>