前言介紹
- 這款 WordPress 外掛「Sections by Wesfed」是 2013-09-24 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2013-09-25,距離現在已有 4239 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
ads | adsense | content | sections | text placement |
內容簡介
這個外掛允許您在整個網站上建立管理員可管理的內容區塊。您只需在想要出現該區塊的地方添加少量的程式碼(php 或 shortcode),然後在管理面板中進行編輯即可。非常易於使用,並允許創建無限數量的區塊。
歡迎前往以下網址協助開發此外掛: https://github.com/wesf90/wp-wf-sections
使用方法
您可以通過實施它們來建立區塊。您可以通過管理員面板創建它們,路徑為 Admin > Sections > Add New,但這不是預期的使用方式。
在管理面板中的內容中創建區塊,只需在您的頁面、文章或小工具中添加以下shortcode,即可:
[wf_section title="My New Section"]
要在您的網站的任何 php 文件中建立區塊,只需使用以下代碼:
添加了此代碼後,該區塊將自動在管理員面板的“部分”區域中創建。您隨後可以從那裡編輯內容。
區塊選項
此外掛提供了許多選項,可以實現更快的開發和更輕鬆的實現,無論您是使用shortcode還是PHP方法進行實現。
PHP
此代碼的默認值為:
WF_Section($title, $ad=false, $echo=true);
要改變這些默認值,只需按以下方式編寫代碼:
new WF_Section('My section'); // 簡單放置,並顯示內容
new WF_Section('My ad', '300x250'); // 創建帶有預先填充廣告圖像的區塊。非常適合練習!
new WF_Section('My echo section', false, true); // 不顯示為廣告,返回內容而不是顯示它
要允許更多功能,請使用數組分配您的選項(默認值如上所示):
new WF_Section(array(
'title' => '', // 區塊的標題
'default' => '', // 創建時的默認內容
'shortcodes' => true, // 解析內容中的shortcodes?
'ad' => false, // 這是廣告嗎?如果是,請放置尺寸,例如“300x250”
'echo' => true // 顯示內容還是返回內容
));
Shortcode
使用shortcode時,要設置您的自定義選項,只需將選項名稱添加到shortcode調用中。選項及其默認值與上述PHP方法相同:
[wf_section title="Your Title" default="The default content upon creation" shortcodes=true ad="300x250" echo=true]
創建廣告放置
此外掛還允許您通過在shortcode或函數調用中設置大小,快速創建分段廣告放置。預先填充的臨時圖像將作為區塊的內容。可以隨時將其刪除並替換為您的實際廣告代碼。這是創建設計模型的理想工具。
任意區域
原文外掛簡介
This plugin allows you to create admin-manageable content sections across your site. You simply add the small code (php or shortcode) where you would like the section to appear, then edit it in the admin panel. Extremely easy to use, and allows an unlimited number of sections to be created.
Feel free to help develop this plugin at: https://github.com/wesf90/wp-wf-sections
How to Use
You create sections by implementing them into your website. You can create them via Admin > Sections > Add New, however that is not the intended use.
To create a section in the content of your site via the admin panel, simply add the following shortcode to your page, post, or widget.
[wf_section title="My New Section"]
To create a section anywhere in a php file of your website, simply use the following code:
After adding this code, the section will automatically create itself in the admin panel’s “Section” area. You can then edit the content from there.
Section Options
This plugin offers a number of options which allow for quicker development, and easier implementation, whether you’re using the shortcode or the PHP method to implement it.
PHP
The defaults for this code are:
WF_Section($title, $ad=false, $echo=true);
To alter these defaults, simply write the code as:
new WF_Section('My section'); // Simple placement with echo
new WF_Section('My ad', '300x250'); // Created a section with a pre-filled ad image. Great for wireframing!
new WF_Section('My echo section', false, true); // Doesn't display as an ad, and returns the content instead of echoing it
To allow even more features, use an array to assign your options (defaults are shown):
new WF_Section(array(
'title' => '', // The title of the section
'default' => '', // The default content upon creation
'shortcodes' => true, // Parse shortcodes inside the content?
'ad' => false, // Is this an ad? If so, place the dimensions such as '300x250'
'echo' => true // Echo or return the content
));
Shortcode
To set your own options when using the shortcode, simply add the option name to the shortcode call. The options and their defaults are the same as listed above for the PHP method:
[wf_section title="Your Title" default="The default content upon creation" shortcodes=true ad="300x250" echo=true]
Creating Ad Placements
This plugin also allows you to quickly create sectional ad placements by setting the size in the shortcode or function call (shown above). A pre-filled stand-in image will be inserted as the content of your section by default. This can always be taken out later and replaced with your actual ad’s code. This is a great tool for creating design mockups.
Arbitrary section
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Sections by Wesfed」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
One Click Demo Import 》這個外掛的最佳功能在於主題作者可以在他們的主題中定義導入文件,所以所有使用該主題的用戶只需點擊「導入演示數據」按鈕即可。, , 你是主題作者嗎?, 為你...。
Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
Rara One Click Demo Import 》您喜歡 Rara Theme 製作的主題展示嗎?還是需要設定主題的指南?, 那麼,您只需要這個外掛!, Rara One Click Demo Import 外掛可以幫助您一鍵匯入演示內容,...。
Advanced WP Columns 》Advanced WP Columns 外掛提供了簡單易用的介面,讓您可以在部落格中使用多欄位顯示內容,而無需使用任何簡碼。此外,也支援回應式排版。, , 基本資訊, 外掛...。
WP Subtitle 》WP Subtitle 外掛能讓你的頁面和文章擁有副標題。這個短小的文字通常出現在文章(或頁面)標題之下,也可以在你選擇的任何地方插入你的樣板。, 你可以使用以...。
WP-ShowHide 》預設情況下,內容是隱藏的,使用者必須點擊「顯示內容」連結來切換內容。與 Engadget 為他們的新聞稿所做的方式相似。範例用法:[showhide type="pressreleas...。
TutorMate 》TutorMate 是一款專為 Tutor Starter 主題設計的外掛程式,可將預先設計好的時尚示範頁面匯入由 Tutor LMS 外掛提供的 eLearning 網站。如果您想讓使用 Tutor...。
Themebeez Toolkit 》這是我們開發的一個適用於 WordPress 主題 的基本工具包,Themebeez Toolkit 可以幫助您導入虛擬演示內容,還為我們的主題添加了額外的功能和功能。, ✨ 包括...。
RSSImport 》這款外掛可使用 PHP、小工具或短代碼在您的部落格中顯示 RSS 資訊。此外掛僅使用 WordPress 標準功能,因此不需要外部庫。對於較舊版本的 WordPress,使用內...。
Custom Content Shortcode 》停用通知, , 此外掛已不再維護。, 請改使用下一代範本系統:Loops & Logic。, 概述, , 從單一欄位到整個頁面,Custom Content Shortcode 是一套指令,可...。
Blaze Demo Importer 》首頁 | 所有主題 | 部落格 | 支援, , Blaze Demo Importer 可在所有 BlazeThemes 開發的官方主題中使用。此外掛可以用於將任意可用的起始網站設置匯入到您的...。
AI Assistant by 10Web – SEO Pack 》EO errors in the paragraph., Content Generator, The AI Assistant by 10Web – SEO Pack can generate long-form content such as articles and blog posts...。
10Web AI Assistant – AI content writing assistant 》10Web AI Assistant for WordPress是專門為WordPress開發的AI內容編輯和AI內容創作工具。透過10Web AI助手,您可以在不離開WordPress環境的情況下比傳統方式...。
AF Companion – Build Stylish WordPress Websites in Minutes – No Coding, Just Click and Go! Starter Sites Importer for WordPress 》m/products/newsever-pro/" rel="nofollow ugc">Newsever Pro, Shopical Pro, Elegant Magazine Pro, And More.., , __ Check all of our Plugins __, , News...。
Access Demo Importer 》這個外掛會為現行主題匯入與此外掛相容的示範內容。預設下外掛會從我們的伺服器取得設定檔案。, 若您想要使用外掛設定自己的主題,只需指向您的 config.json ...。