Title: Plain Text Custom Post Type
Author: Ryan
Published: <strong>2012 年 6 月 22 日</strong>
Last modified: 2012 年 10 月 12 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/plain-text-custom-post-type.svg)

# Plain Text Custom Post Type

 作者：[Ryan](https://profiles.wordpress.org/ryannutt/)

[下载](https://downloads.wordpress.org/plugin/plain-text-custom-post-type.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/plain-text-custom-post-type/#description)
 * [评价](https://cn.wordpress.org/plugins/plain-text-custom-post-type/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/plain-text-custom-post-type/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/plain-text-custom-post-type/#developers)

 [支持](https://wordpress.org/support/plugin/plain-text-custom-post-type/)

## 描述

Create plain text files through WordPress using a custom post type.

This came about because I needed a way to edit a JavaScript file on a blog that’s

part of a multi site network setup, and I didn’t want to do a child theme for just
that one blog and keep up with updating the JS through FTP. This way I can edit 
it directly inside of WordPress as I need to without firing up Notepad++ or FileZilla.

If you select either CSS or JavaScript as the file type you’ll have the option
 
for the plugin to automatically link to the file within your page header, assuming
your theme supports the wp_head callback. The links are created using either wp_register_script/`
wp_enqueue_script` or `wp_enqueue_style` / `wp_enqueue_style`.

And a thank you goes out to Ted Devito for his
 [Tabby jQuery plugin](http://teddevito.com/demos/textarea.html)
that allows the capture of tabs inside the edit text area.

## 屏幕截图

[⌊Post list view of all the plain text files available⌉⌊Post list view of all the
plain text files available⌉[

Post list view of all the plain text files available

[⌊Publish meta box allowing you to select content type and whether to load the post
automatically⌉⌊Publish meta box allowing you to select content type and whether 
to load the post automatically⌉[

Publish meta box allowing you to select content type and whether to load the post
automatically

[⌊Plain Text Files option added under the Pages tab⌉⌊Plain Text Files option added
under the Pages tab⌉[

Plain Text Files option added under the Pages tab

## 安装

Pretty much like any other plugin…

Either

 1. Upload the `plain-text-custom-post-type` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

or

 1. Download and activate through WordPress

#### Usage

Once activated, a new page will be available under the Pages tab. Click on Plain
Text Files and you’ll be able to create new plain text posts.

## 常见问题

  Why isn’t my file automatically linking?

Make sure that you have selected either CSS or JavaScript as the file type for your

file. Files set as Plain Text cannot be linked in the head of your pages.

  How did you capture the tabs?

Okay, not really a FAQ. But I did want to make sure that Ted Divito got credit
 
for the [Tabby jQuery plugin](http://teddevito.com/demos/textarea.html) that I used.
I’ve tried to capture tabs inside of text areas before and it was much more complicated
that I expected and my solutions never worked as well as they should.

  Help, I need more help!

[My site](http://www.nutt.net/tag/plain-text-cpt/) is probably your best bet. I’m

around the WordPress forums occasionally, but my site would be faster.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Plain Text Custom Post Type」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ryan ](https://profiles.wordpress.org/ryannutt/)

[帮助将「Plain Text Custom Post Type」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/plain-text-custom-post-type)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/plain-text-custom-post-type/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/plain-text-custom-post-type/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/plain-text-custom-post-type/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/plain-text-custom-post-type/)。

## 更新日志

#### 0.2

 * Fixed a conflict between the stats module on Jetpack.

#### 0.1

 * First release – Nothing interesting to read here…

## 额外信息

 *  版本 **0.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/plain-text-custom-post-type/)
 * 标签
 * [cpt](https://cn.wordpress.org/plugins/tags/cpt/)[css](https://cn.wordpress.org/plugins/tags/css/)
   [javascript](https://cn.wordpress.org/plugins/tags/javascript/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [text](https://cn.wordpress.org/plugins/tags/text/)
 *  [高级视图](https://cn.wordpress.org/plugins/plain-text-custom-post-type/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/plain-text-custom-post-type/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/plain-text-custom-post-type/reviews/)

## 贡献者

 *   [ Ryan ](https://profiles.wordpress.org/ryannutt/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/plain-text-custom-post-type/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.nutt.net/donate/)