跳到内容

Plain Text Custom Post Type

v0.2

Ryan · 2012年6月22日 上架

Adds a custom post type for plain text files that can be used for JavaScript or CSS.

正在使用
10+
评分
暂无
累计下载
2,133
最近更新
2012年10月13日
需要 WordPress 3.0+已测试到 3.4.2

贡献者

截图

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
Plain Text Files option added under the Pages tab
Plain Text Files option added under the Pages tab

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums