這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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 that allows
the capture of tabs inside the edit text area.

螢幕擷圖

  • 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
  • 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 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 is probably your best bet. I’m
around the WordPress forums occasionally, but my site would be faster.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Plain Text Custom Post Type〉的開發相關工作。

參與者

將〈Plain Text Custom Post Type〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.2

  • Fixed a conflict between the stats module on Jetpack.

0.1

  • First release – Nothing interesting to read here…