[wordpress插件] Auto Load Page Template自动加载页面模板

wordpress 插件 文章 2020-02-24 11:40 564 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

If this plug-in is enabled, and there is a file on the same theme level as the static page URL level, then that theme file will automatically be loaded as the template file.

如果启用了此插件,并且有一个与静态页面URL级别处于同一主题级别的文件,则该主题文件将自动作为模板文件加载。

Example

示例

For the static page URL: “http://example.com/foo/bar/”

对于静态页面URL:“ http://example.com/foo/bar/”

Theme directory: “/wp-content/themes/mytheme/foo/bar/index.php”

主题目录:“ / wp-content / themes / mytheme / foo / bar / index.php”

will be loaded as the template file if it exists.

如果存在,将作为模板文件加载。

*If enabled themes have a parent-child relationship, then the file for the child theme will be loaded with precedence.

*如果启用的主题具有父子关系,则子主题的文件将优先加载。

安装步骤

    1. Upload the entire auto-load-page-template folder to the /wp-content/plugins/ directory.
    2. 将整个 auto-load-page-template 文件夹上载到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

下载地址
https://downloads.wordpress.org/plugin/auto-load-page-template.1.2.0.zip
-EOF-

AI助手支持GPT4.0