[wordpress插件] CPT Template PathCPT模板路径

wordpress 插件 文章 2020-04-04 09:50 504 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin adds Custom Post Type slug as folder path to template hierarchy.

此插件将“自定义帖子类型”子句添加为模板层次结构的文件夹路径。

Like, if you a custom post type “movie”.

例如,如果您是自定义帖子,则键入“电影”。

So, templates can be placed as below: your_theme/movie/single.php your_theme/movie/index.php

因此,可以将模板放置如下:your_theme / movie / single.php your_theme / movie / index.php

安装步骤

    1. Install CPT Template Path either via the WordPress.org plugin directory, or by uploading the files to your server.
    2. 通过WordPress.org插件目录或通过将文件上传到服务器来安装CPT模板路径。

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

    5. That’s it.

    6. 就是这样。

      You’re ready to go!

    7. 您准备好了!

下载地址
https://downloads.wordpress.org/plugin/cpt-template-path.zip
-EOF-

AI助手支持GPT4.0