该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

AMS Single Post Template Selector

描述

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.

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

<?php
/*
Post Template - Name: Template Name
*/
?>

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

屏幕截图

  • In post edit screen screenshot-1.jpg.
  • Template naming screenshot-2.jpg.

安装

  1. Install AMS Single Post Template Selector either via the WordPress.org plugin directory, or by uploading the files to your server.
  2. Activate the plugin.
  3. That’s it. 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.

常见问题

How do I create new Post Templates?

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

<?php
/*
Post Template - Name: Template Name
*/
?>

PS: Post templates use: “Post Template – Name:”.

How do I use the Post Templates I created?

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.

Can I include this plugin in my theme for distribution without any cost?

Yes. Of course.

I have a question that wasn’t covered in the FAQ. How can I reach you?

Please email me at: manojmar2012@gmail.com.

Bug reports are, of course, appreciated and cost you nothing.
I will try to make sure bugs are fixed ASAP.

评价

此插件暂无评价。

贡献者及开发者

「AMS Single Post Template Selector」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

Version 1.0

  • First Release