內容簡介
這個外掛提供了可以在「The Loop」中使用的 Hook,從 <!-- MORE --> 標籤前後擷取內容。如果沒有提供 MORE 標籤,它將分別返回 the_excerpt() 和 the_content()。您還可以使用一個函數來訪問所有內容,無論有沒有 MORE 標籤。
目前版本
目前版本:1.2
修訂歷史
0.1 – 在主題的 functions.php 檔案中製作
0.5 – 創建了插件,仍需要傳遞 $post->post_content 給函數
1.0 – 刪除了需要傳遞 $post->post_content 的部分
1.1 – 修正了停止 the_content() 張貼的錯誤
1.2 – 添加了一個函數來獲取所有文章內容,無論有無 MORE 標籤。
GPL
版權所有 2008 Corey Dutson (電子郵件:[email protected])
這個程式是自由軟體,在自由軟體基金會發佈的 GNU 通用公共許可證(GPL)第 2 版或(按您的意願)任何後續版本的規定下,你可以重新分配和修改它。
這個程式分發於希望它是有用的,但不帶任何保固,甚至未明示的保證,也不保證適合特定用途。詳細的內容請參閱 GNU 通用公共許可證。
您應該收到一份 GNU 通用公共許可證的副本,如果沒有,請致函於 Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA。
外掛標籤
開發者團隊
原文外掛簡介
Provides hooks that can be used within ‘The Loop’ to grab content from before and after the tag. If no MORE tag is provided, it will return the_excerpt() and the_content() respectively. You can also use a function to access all content, regardless of MORE tag.
Current version
Current version: 1.2
Revision History
0.1 – made within the functions.php file of the theme
0.5 – created the plugin, still required $post->post_content to be passed to functions
1.0 – removed $post->post_content to be passed in.
1.1 – fixed a bug that stopped the_content() from posting
1.2 – added function to get all post content, regardless of MORE tag
GPL
Copyright 2008 Corey Dutson (email : [email protected])
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
