[WordPress] 外掛分享: Plain Text Custom Post Type

首頁外掛目錄 › Plain Text Custom Post Type
10+
安裝啟用
尚無評分
4906 天前
最後更新
問題解決
WordPress 3.0+ v0.2 上架:2012-06-21

內容簡介

透過自訂文章類型在 WordPress 中建立純文字檔案。

這是因為我需要一種方法,在多站網路設定的部落格上編輯 JavaScript 檔,
而我不想只為了那個部落格就要使用子佈景主題並且不得不透過 FTP 更新 JS 檔。
這樣一來,我可以直接在 WordPress 內部進行編輯,而不用啟動 Notepad++ 或
FileZilla。

如果您將檔案類型設定為 CSS 或 JavaScript,
您就可以選擇讓外掛自動在頁面標頭中連結該檔案(若您的佈景主題支援 wp_head 回叫的話)。
連結是使用 wp_register_script / wp_enqueue_script 或 wp_enqueue_style / wp_enqueue_style 來建立。

感謝 Ted Devito 的作品 Tabby jQuery plugin ,
他讓編輯文字區塊內的 TAB 有了更好的擷取方式。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

延伸相關外掛

文章
Filter
Mastodon