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

In The Loop

外掛說明

Be in the loop!

Not all plugins provide a way to automatically attach code before or after the post content. Or you might have some other HTML, CSS or JavaScript you’d like to include with every post. Now’s your chance. With In The Loop you can easily add any code you like to your posts and pages, and not have to do any messy edits to your theme files either.

The plugin provides an options panel with two input boxes. One is for content you want to appear before your post, the other for after it. Each box comes with a set of options to control whether to show it on Teasers, Single Posts, Pages, The Feed and whether or not to execute PHP.

License

The In The Loop plugin was developed by Eric Marden, and is provided with out warranty under the GPLv3 License. More info and other plugins at: http://xentek.net

Copyright 2008 Eric Marden (email : wp@xentek.net)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

螢幕擷圖

  • In The Loop options screen

安裝方式

  1. Download the in-the-loop.zip file, unzip and upload the whole directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Paste HTML, CSS, JavaScript and/or PHP into one of the input boxes provided on the In The Loop options page, and click Update Options.
  4. Select the locations you would like your code to show up before and/or after.
  5. If you include PHP code, be sure to wrap it in PHP tags, and check off the option under that input box to enable it to execute your code.
  6. Smile about your blog’s new functionality!

常見問題集

I think I’m doing it wrong. I put in some PHP code, checked the box, and saved it, but now nothing is showing up, including the plain jane HTML that I put in there, too.

Make sure there aren’t any PHP errors being generated by your code. If any of your code errors, it won’t be able to finish parsing it. Also, your PHP code must be syntactically correct as well as echo any content you want shown in order to function properly.

I want to help with development of this Plugin!

The project is now hosted on github.com. Just fork the project and send me a pull request.

New to git?

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈In The Loop〉的開發相關工作。

參與者

將〈In The Loop〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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