Title: PostDivider
Author: loveless
Published: <strong>2008 年 12 月 4 日</strong>
Last modified: 2009 年 5 月 12 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/postdivider.svg)

# PostDivider

 作者：[loveless](https://profiles.wordpress.org/loveless/)

[下载](https://downloads.wordpress.org/plugin/postdivider.zip)

 * [详情](https://cn.wordpress.org/plugins/postdivider/#description)
 * [评价](https://cn.wordpress.org/plugins/postdivider/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/postdivider/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/postdivider/#developers)

 [支持](https://wordpress.org/support/plugin/postdivider/)

## 描述

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 : cdutson@wallofscribbles.com)

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

## 安装

 1. Upload `PostDivider` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

Once that’s done, you can use the following hooks to display the content:
 _(Please
note that these functions operate within ‘The Loop’)_

**Getting the text before the  tag**
 * `the_pre_more_text();` – this will display
the text automatically. * `$content = get_the_pre_more_text();` – this stores the
text within a variable.

**Getting the text after the  tag**
 * `the_post_more_text();` – this will display
the text automatically. * `$content = get_the_post_more_text();` – this stores the
text within a variable.

**Getting all of the text regardless of  tag**
 * `all_post_text();` – this will
display the text automatically. * `$content = get_all_post_text();` – this stores
the text within a variable.

## 常见问题

  The pre more text is just displaying the excerpt, and the post more has all of
the content including the excerpt! *What’s going on?*

If your post does not have a **MORE** tag used in it, the functions default to the
normal WordPress functions; namely the_excerpt() and the_content()

## 评价

此插件暂无评价。

## 贡献者及开发者

「PostDivider」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ loveless ](https://profiles.wordpress.org/loveless/)

[帮助将「PostDivider」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/postdivider)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/postdivider/)，查看[SVN仓库](https://plugins.svn.wordpress.org/postdivider/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/postdivider/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/postdivider/)。

## 额外信息

 *  版本 **1.2**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.0.2 或更高版本 **
 *  已测试的最高版本为 **2.7.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/postdivider/)
 * 标签
 * [content](https://cn.wordpress.org/plugins/tags/content/)[excerpt](https://cn.wordpress.org/plugins/tags/excerpt/)
   [more tag](https://cn.wordpress.org/plugins/tags/more-tag/)
 *  [高级视图](https://cn.wordpress.org/plugins/postdivider/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/postdivider/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/postdivider/reviews/)

## 贡献者

 *   [ loveless ](https://profiles.wordpress.org/loveless/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/postdivider/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://wallofscribbles.com/wordpress-plugins)