[wordpress插件] AMS Single Post Template SelectorAMS单帖子模板选择器

wordpress 插件 文章 2020-02-18 01:10 481 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin allows you to choose different template for individual post, for the purpose of single post view, by selecting previously created post template from the provided drop-down list in the post edit screen.

此插件可让您通过从帖子编辑屏幕中提供的下拉列表中选择先前创建的帖子模板,来为单个帖子视图选择不同的模板,以进行单个帖子查看。

The plugin will replace the default template (single.php) with selected template for the post you applied the new template.

对于您应用新模板的帖子,该插件将使用所选模板替换默认模板(single.php)。

To create a post template, write an opening PHP comment at the top of the file that states the template’s name.

要创建帖子模板,请在文件顶部写一个开头的PHP注释,指出模板的名称。

  <?php

/*

/ *

Post Template - Name: Template Name

帖子模板-名称:模板名称

*/

* /

?>

?>

Please Note: Post template name ussage: “Post Template – Name:”.

请注意:帖子模板名称用法:“帖子模板–名称:”。

安装步骤

    1. Install AMS Single Post Template Selector either via the WordPress.org plugin directory, or by uploading the files to your server.
    2. 通过WordPress.org插件目录或将文件上传到服务器来安装AMS单一帖子模板选择器。

    3. Activate the plugin.
    4. 激活插件。

    5. That’s it.

    6. 就是这样。

      You’re ready to go!

      您准备好出发了!

    Once you activated the plugin, create a post template in your theme’s folder and go to Posts > Add New screen in your admin dashboard.

    激活插件后,请在主题文件夹中创建帖子模板,然后在管理控制台中转到帖子>添加新屏幕。

    On the right hand side top you’ll see Post Template Selector template drop-down list.

    在右侧顶部,您会看到“发布模板选择器”模板下拉列表。

    This is where you are able to access your post templates.

    您可以在此处访问帖子模板。

下载地址
https://downloads.wordpress.org/plugin/ams-single-post-template-selector.1.0.zip
-EOF-

AI助手支持GPT4.0